Full screen mode with 4:3 aspect ratio on widescreen display?
by Ron Hasson · in Torque Game Engine · 05/18/2006 (7:23 pm) · 2 replies
Hi all,
Torque toggles to fullscreen with alt-enter. Widescreen displays pose a problem where the screen gets stretched out horizontally. I would like to retain a 4:3 aspect ratio with both normal and widescreen displays.
What I've done
- Read related posts like this
- Tinkered with OpenGLDevice::setScreenMode in winOGLVideo.cc
So far, what I manage is to use the current Windows desktop resolution in fullscreen mode.
E.g. on a computer with desktop resolution of 1200X800 (widescreen), I make Torque display at this desktop resolution of 1200X800 in fullscreen.
Note that my method differs from default Torque implementation where the fullscreen mode uses the in-game selected resolution e.g. 640x480, 800x600 etc
My method is not ideal because while the playGui and most other game screens appear normal (not stretched), there're some cases when the GUI placement is a little mis-aligned.
I believe a better solution is to have black bars on the left and right sides of the game screen while in fullscreen mode on widescreen displays; like what you see on widescreen TVs.
Any help, anyone ?
Thanks in advance.
Torque toggles to fullscreen with alt-enter. Widescreen displays pose a problem where the screen gets stretched out horizontally. I would like to retain a 4:3 aspect ratio with both normal and widescreen displays.
What I've done
- Read related posts like this
- Tinkered with OpenGLDevice::setScreenMode in winOGLVideo.cc
So far, what I manage is to use the current Windows desktop resolution in fullscreen mode.
E.g. on a computer with desktop resolution of 1200X800 (widescreen), I make Torque display at this desktop resolution of 1200X800 in fullscreen.
Note that my method differs from default Torque implementation where the fullscreen mode uses the in-game selected resolution e.g. 640x480, 800x600 etc
My method is not ideal because while the playGui and most other game screens appear normal (not stretched), there're some cases when the GUI placement is a little mis-aligned.
I believe a better solution is to have black bars on the left and right sides of the game screen while in fullscreen mode on widescreen displays; like what you see on widescreen TVs.
Any help, anyone ?
Thanks in advance.
Torque Owner JakeT
Magellan Interactive LLC
Has anyone else solved this riddle?