Put my refresh rate code back in. (mutter)

This commit is contained in:
Glenn Maynard
2002-11-13 02:37:15 +00:00
parent 3195ca664c
commit a64cfed1cf
+2 -14
View File
@@ -171,20 +171,8 @@ bool RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, i
#ifdef SDL_HAS_REFRESH_RATE
if(rate == REFRESH_DEFAULT)
SDL_SM_SetRefreshRate(0);
/*else
// Change Windows Refresh Rate:
// This is a modification of a code snippet I found
// It changes the windows desktop refresh rate if
// it's on a windows platform.
// -=Lance Gilbert=-
#if defined(WIN32)
::ZeroMemory(&SMGfx, sizeof(SMGfx));
SMGfx.dmDisplayFrequency = rate;
SMGfx.dmFields = DM_DISPLAYFREQUENCY;
SMGfx.dmSize = sizeof(SMGfx);
ChangeDisplaySettings(&SMGfx, 0);
#endif*/
else
SDL_SM_SetRefreshRate(rate);
#endif
bool need_reload = false;