Changing the window size/resolution
by Chris Serino · in Torque X 2D · 08/25/2007 (10:39 pm) · 3 replies
I'm trying to make a game that requires the widescreen aspect ratio. So I'm trying to get the game window when I run the game on my computer to be widescreen (in my case, 1280x720), but I can't find anywhere to change the window size. Does anyone know a way to do it?
About the author
#3
12/22/2007 (10:55 am)
Good write up John. I haven't tried my solution for the xbox, but I know at least it works for the PC.
Torque Owner A Herrera
//int scrW = Game.GameInstance.GraphicsDeviceManager.GraphicsDevice.DisplayMode.Width;
//int scrH = Game.GameInstance.GraphicsDeviceManager.GraphicsDevice.DisplayMode.Height;
int scrW = Game.GameInstance.GraphicsDeviceManager.GraphicsDevice.Viewport.Width;
int scrH = Game.GameInstance.GraphicsDeviceManager.GraphicsDevice.Viewport.Height;
Viewport was used for the game screen size, and DisplayMode is for the computer resolution. I hope this helps.
- A -