I thought I had this problem licked, but it apparently cropped back up somehow.
My game allows portrait and inverse portrait. I wrote it all in Tier 1 and am now working out of 10811b, but the issue persists in earlier versions of AGK.
If you hold the device in landscape mode and launch the game then the game will appear in portrait mode, but squished.
My code is straightforward for screen setup and is included below.
It is like the interpreter is conflicting with the game code.
I can't get this to occur on my phone running Android 2.3 because the phone doesn't allow landscape from the launcher. It occurs on my Nexus 7 and I have reports of it occurring on ASUS transformer.
Is there something I can set in the C++ files to ensure this works correctly?
Thanks!!
SetOrientationAllowed (1,1,0,0)
Sync()
if GetDeviceName() = "windows"
SetDisplayAspect(540.0/900)
elseif GetDeviceName() = "android"
// Force the app to stretch to the device's aspect ratio
w# = GetDeviceWidth()*1.0
h# = GetDeviceHeight()
SetDisplayAspect(w#/h#)
else
SetDisplayAspect(768.0/1280)
endif
Check out dFenz on Google Play, Windows, or Mac: