vab icon indicating copy to clipboard operation
vab copied to clipboard

Device orientation problem

Open dudejj opened this issue 2 months ago • 0 comments

If I compile for example 2048.v to android, run it and change the orientation of the device, app's scaling goes too small, too big or whatever in between.

I guess the reason is that in orientation change both the code and the device is resizing and it don't end well.

If I remove orientation activity from AndroidManifest.xml (a hint from some android chat), scale stays but at least this 2048 restarts in orientation change. Not a good feature for a game.

In my own graphical app testing, the issue is same. If I try to get screen size with gg.screen_size() to handle window size/scaling by code to screen limits, it returns zeroes and can not be done. Context.window_size() (and gg.window_size() ) gives different values after orientation changes (even when back to same orientation). Is there a way to handle this by vab or is it purely gg and coding issue.

dudejj avatar Apr 19 '24 12:04 dudejj