Feature + PATCH: support more video resolutions
by Andy · in Torque Game Builder · 12/17/2006 (12:14 pm) · 0 replies
This really isn't a bug, but I'm not sure where else to post the diff.
When prototyping, I like flexibility in selecting "gameplay resolutions." . Here's one way to get a larger selection of display resolutions.
It's fun to see what things look like running at 480x272 (native res of the Sony PSP). ;^)
When prototyping, I like flexibility in selecting "gameplay resolutions." . Here's one way to get a larger selection of display resolutions.
It's fun to see what things look like running at 480x272 (native res of the Sony PSP). ;^)
*** x86UNIXOGLVideo.cc.orig 2006-04-17 23:11:19.000000000 -0700
--- x86UNIXOGLVideo.cc 2006-12-09 12:24:49.000000000 -0800
***************
*** 76,82 ****
U32 desktopBpp = x86UNIXState->getDesktopBpp();
// don't allow any resolution under this size
! if (width < 640 || height < 480)
return;
if (check)
--- 76,82 ----
U32 desktopBpp = x86UNIXState->getDesktopBpp();
// don't allow any resolution under this size
! if (width < 200 || height < 200)
return;
if (check)
***************
*** 118,129 ****
--- 118,145 ----
smCanSwitchBitDepth = true;
// add some default resolutions
+ addResolution(240, 320); // QVGA portrait
+ addResolution(320, 200); // QVGA "widescreen"
+ addResolution(320, 240); // QVGA landscape, semi-NTSC res
+ addResolution(480, 272); // Sony PSP
+ addResolution(640, 427); // 1/2 of 1280x854 old 15" Powerbook LCD
addResolution(640, 480);
+ addResolution(720, 480); // "DVD"
addResolution(800, 600);
+ addResolution(840, 525); // 1/2 of 1680x1050 (Dell 20" widescreen LCD)
+ addResolution(960, 540); // 1/2 of 1920x1080
+ addResolution(960, 544); // 2x 480x272
+ addResolution(960, 600); // 1/2 of 1920x1200
+ addResolution(1024, 600); // 1.6 "widescreen"
addResolution(1024, 768);
addResolution(1152, 864);
+ addResolution(1280, 854); // old 15" Powerbook widescreen
addResolution(1280, 1024);
addResolution(1600, 1200);
+ addResolution(1680, 1050); // Dell 20" widescreen
+ addResolution(1920, 1080); // HD
+ addResolution(1920, 1200); // HD "laptop style"
+ addResolution(2560, 1600); // 30" LCD style
// specifying full screen should give us the resolutions that the
// X server allows