1

I have an app, created using the Marmalade cross-platform development SDK (i.e. the app bundle is not built with Xcode), which is currently displaying as a scaled up 1536x2048 resolution, instead of the full-size 2048x2732 resolution.

I am using a Launch Storyboard LaunchScreen.nib, which was copied over from an app which does display at the correct resolution.

The Info.plist contains the lines:

<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>

The storyboard displays on launch, but the app displays at the wrong resolution. (Easily visible by looking at the OS-rendered status bar.)

What else is required to get the app to run at the correct resolution?

Rich
  • 7,348
  • 4
  • 34
  • 54

2 Answers2

0

The answer depends on what graphics api you are using. If you use IwGL check out your virtual resolution settings in app.icf (VirtualWidth, VirutalHeight, and VirtualLetterbox). http://docs.madewithmarmalade.com/display/MD732/IwGL+virtual+resolution

If you use IwGX check out values that return IwGxGetScreenWidth() and IwGxGetScreenHeight() functions and scale your visual components in accordance your aspect ratio.

  • I think you're misunderstanding the issue. The "screen" provided by IwGx is the wrong size, so scaling the components that I draw within it won't help. The problem is that the OS is reporting the incorrect screen size *to* Marmalade. – Rich Dec 22 '15 at 13:26
0

In addition to using a launch storyboard, the app also has to be built with the correct iOS SDK. We were already building against this version of the SDK.

However, because the app was built using Marmalade, and not Xcode, some of the values in the final, packaged Info.plist weren't correct. (Xcode adds some settings to the app's Info.plist during the build process.) Updating to the following values fixed the issue:

<key>BuildMachineOSBuild</key>
<string>15A282b</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>13C75</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTPlatformVersion</key>
<string>9.2</string>
<key>DTSDKBuild</key>
<string>13C75</string>
<key>DTSDKName</key>
<string>iphoneos9.2</string>
<key>DTXcode</key>
<string>0720</string>
<key>DTXcodeBuild</key>
<string>7C68</string>

This is essentially the same issue as a previous problem we've had with apps built using Marmalade.

Community
  • 1
  • 1
Rich
  • 7,348
  • 4
  • 34
  • 54