Game Development Community

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.

#1
03/19/2008 (2:37 pm)
Ron - This was the only post I found on this issue. I completely agree with you and am trying to figure out a way to have all resolutions setup as widescreen standard. And if fullscreen is selected, just clip the edges with black boxes for screens that dont fit that size. This would allow us to support just one aspect ratio (16:9). Otherwise, we have to support 4:3 and widescreen (without fullscreen).

Has anyone else solved this riddle?
#2
12/07/2008 (1:42 pm)
Ever solve this?