Allegro 5 game: How do I set a resolution that is appropriate for the aspect ratio of the screen?
Using Allegro 5, how do initialize a game in fullscreen mode so that it respects the format of the screen (widescreen 16:9 vs normal 3:4) al_create_display (w, h) Let's you select any ratio you want. For example you can set 640x480, regardless of the screen size. But it will look weird on a widescreen monitor. How do you know which ra...