I am trying to create a set of functions to set a default resolution (using Blitz Max) based on my game's internal resolution and the user's desktop resolution. For this I collect all available resolutions that share the desktop's aspect ratio. I have a 4:3 CRT screen (Syncmaster 753s) running the desktop at 1024*768.
Among the collected modes is indeed 1024*768; if I force my function to select that one, everything is fine.
However, based on my game's internal resolution the mode 1280*960 is selected (this is OK). This mode also has aspect ratio 4:3, but somehow I now see vertical black bars left and right. If I try to set my desktop to this resolution I see the same bars, so I think it's not the game doing it.
So, 1024*768 (4:3) looks fine, but 1280*960 (4:3) has black bars left and right.
Does anyone know what would be going on here?
Is this related to square/non square pixels? (A very wild guess.)
Among the collected modes is indeed 1024*768; if I force my function to select that one, everything is fine.
However, based on my game's internal resolution the mode 1280*960 is selected (this is OK). This mode also has aspect ratio 4:3, but somehow I now see vertical black bars left and right. If I try to set my desktop to this resolution I see the same bars, so I think it's not the game doing it.
So, 1024*768 (4:3) looks fine, but 1280*960 (4:3) has black bars left and right.
Does anyone know what would be going on here?
Is this related to square/non square pixels? (A very wild guess.)