I have a question about screen aspect ratio. I've found a simple solution, but I'm kinda hoping there's a better one.
If I have a game that is, say, 320x200, I want my game to take up as much of the screen as possible. However, I also want the aspect ratio to remain the same, so that the game is not stretched. On a widescreen monitor (5:8) it should take up the whole screen. On a regular monitor (3:2), it should be in letterbox format to compensate for the aspect.
My current solution --- Turn on "resize display to fill window size," then add the following to global events:
The problem with this is that the desktop shows through the top and bottom of the "letterbox." You can try my Trike Demo to see the problem I'm talking about.
-->Set WindowInit to 1
-->Window Control: Set horizontal position to 0
Set vertical position to (ScreenYSize( "Window Control" )-(ScreenXSize( "Window Control" )*200)/320)/2
Set horizontal size to ScreenXSize( "Window Control" )
Set vertical size to (ScreenXSize( "Window Control" )*200)/320
I've tried the "keep screen ratio" option in MMF HWA, but it doesn't seem to be what I want. Has anybody found a better solution?