This commit is contained in:
Glenn Maynard
2004-09-18 19:44:43 +00:00
parent 6029dcd0f5
commit 3dff054839
-29
View File
@@ -47,35 +47,6 @@ CString RageDisplay::PixelFormatToString( PixelFormat pixfmt )
// Return true if device was re-created and we need to reload textures.
bool RageDisplay::SetVideoMode( VideoModeParams p )
{
/* Round to the nearest valid fullscreen resolution */
/* Don't do this: we might be manually set to a less common resolution,
* like 1280x1024 or 640x240, which are occasionally useful. XXX: how
* should we do this sanity check? A list of acceptable height/widths,
* forcing unknown ones? */
/*
if( !p.windowed )
{
if( p.width <= 320 ) p.width = 320;
else if( p.width <= 400 ) p.width = 400;
else if( p.width <= 512 ) p.width = 512;
else if( p.width <= 640 ) p.width = 640;
else if( p.width <= 800 ) p.width = 800;
else if( p.width <= 1024 ) p.width = 1024;
else if( p.width <= 1280 ) p.width = 1280;
switch( p.width )
{
case 320: p.height = 240; break;
case 400: p.height = 300; break;
case 512: p.height = 384; break;
case 640: p.height = 480; break;
case 800: p.height = 600; break;
case 1024: p.height = 768; break;
case 1280: p.height = 960; break;
default: ASSERT(0);
}
}
*/
bool bNeedReloadTextures;
CString err;