Hi all,
Recently esp. laptops display get wider and wider, and I have some problem getting a proper ratio done. I'm using DX8 or DX9 (yes).
My laptop for example lists 800 x 600 as a valid mode for fullscreen. However when I set it the display size doesn't match the mode ratio. The display then stretches the 800 x 600 to look like 1200 x 600 (exaggerated for explanation purposes).
I managed to determine the laptops native mode (which would obviously the ideal resolution for itself, but not for the game). Comparing the ratio of that resolution with all other listed there's NO single other mode that matches the ratio.
What is the common way to work around that?
For a 3d game I'd use native mode and calc black borders on the left/right or top/bottom side to keep the ratio clean.
For a 2d game it's even more annoying. I'd have to find a suitable scaling (a plain factor is required), translate the wanted ratio to the virtual ratio and apply borders as well.
Is that really the way to go about this?