Simplify: harmless to call ChangeDisplaySettings(NULL,0) when going

windowed to windowed, too.  (This g_CurrentParams use is confusing;
trying to reduce it ...)
This commit is contained in:
Glenn Maynard
2006-01-15 00:14:25 +00:00
parent 1fdb63a26d
commit c78cbd62f4
@@ -188,8 +188,7 @@ CString GraphicsWindow::SetScreenMode( const VideoModeParams &p )
if( p.windowed )
{
/* We're going windowed. If we were previously fullscreen, reset. */
if( !g_CurrentParams.windowed )
ChangeDisplaySettings( NULL, 0 );
ChangeDisplaySettings( NULL, 0 );
return CString();
}