Minimum screen size check - how important ?
by Orion Elenzil · in Torque Game Engine · 11/01/2005 (6:08 pm) · 2 replies
In winOGLVideo.cc, there's a check to make sure the window is not smaller than 640x480:
if ( newRes.w < 640 || newRes.h < 480 )
{
Con::warnf( ConsoleLogEntry::General, "OpenGLDevice::setScreenMode -- can't go smaller than 640x480!" );
return false;
}
- any ideas how important this is ?
i overrode it for a significantly smaller resolution and it worked fine in Windowed mode,
which is where i want it.
the only problems i see are:
*dialogs get clipped, but that's fine, we can deal
* when going to full-screen you have to handle the situation where the display device doesn't support the requested size.
- any others ?
tia,
Orion
if ( newRes.w < 640 || newRes.h < 480 )
{
Con::warnf( ConsoleLogEntry::General, "OpenGLDevice::setScreenMode -- can't go smaller than 640x480!" );
return false;
}
- any ideas how important this is ?
i overrode it for a significantly smaller resolution and it worked fine in Windowed mode,
which is where i want it.
the only problems i see are:
*dialogs get clipped, but that's fine, we can deal
* when going to full-screen you have to handle the situation where the display device doesn't support the requested size.
- any others ?
tia,
Orion
About the author
Torque Owner Jimomighty