KeepProportions not working with compiler 3.2
Posted: Tue Oct 27, 2020 6:30 am
Something seems to have changed between versions 2.4 Home edition and 3.2 Professional edition.
When I compile my game with the APK compiler 2.4, the 800x800 game area is stretched equally in both with and height so it looks square and centered on my android devices.
With 3.2 it stretches the game area to the whole screen which doesn't look right.
I'm using the same .hwa applet with both compilers so it's the same code in both instances.
For the @DISPLAY line I use:
@DISPLAY 1, {Width=800, Height=800, Title="ByeByeCorona", ScaleMode=#SCALEMODE_AUTO, FitScale=True, Mode="FullScreenScale", KeepProportions=True}
I tried removing the FitScale tag but that didn't make any difference.
The same issue happens if I run the .hwa applet in the Hollywood player 8 for Android (but not on other platforms).
As I don't have a copy of the older Hollywood player for Androids, I can't test to compare, but my best guess is that the libhollywoodplayer.so embedded by the APK compiler 3.2 doesn't handle KeepProportions the same way the old player did.
The working apk from compiler 2.4 can be downloaded from the android section of the download page
The applet can be downloaded from this direct link if you want to test with the android players or compile it with 3.2
When I compile my game with the APK compiler 2.4, the 800x800 game area is stretched equally in both with and height so it looks square and centered on my android devices.
With 3.2 it stretches the game area to the whole screen which doesn't look right.
I'm using the same .hwa applet with both compilers so it's the same code in both instances.
For the @DISPLAY line I use:
@DISPLAY 1, {Width=800, Height=800, Title="ByeByeCorona", ScaleMode=#SCALEMODE_AUTO, FitScale=True, Mode="FullScreenScale", KeepProportions=True}
I tried removing the FitScale tag but that didn't make any difference.
The same issue happens if I run the .hwa applet in the Hollywood player 8 for Android (but not on other platforms).
As I don't have a copy of the older Hollywood player for Androids, I can't test to compare, but my best guess is that the libhollywoodplayer.so embedded by the APK compiler 3.2 doesn't handle KeepProportions the same way the old player did.
The working apk from compiler 2.4 can be downloaded from the android section of the download page
The applet can be downloaded from this direct link if you want to test with the android players or compile it with 3.2