Forum Libraries, Components, and Plugins

How can I get the aspect ratio to stay correct for both screen orientations?

On Android, when I set the 'ResolutionPolicy' to 'FixedWidth' in my game, it seems to set the correct aspect ratio for the phone's initial screen orientation. However, changing the screen orientation while the game is running does not seem to adjust properly and results in stretching. Changing the screen orientation back reverts to the previous correct appearance. Whichever screen orientation I start the game with, the aspect ratio is correct, but stretched for the other orientation.

What can I do to fix this? If it helps, I'm using CocosSharp v1.7.1.

Sign In or Register to comment.