From a64cfed1cf5a1bedceb052f679758e8058b5a998 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Nov 2002 02:37:15 +0000 Subject: [PATCH] Put my refresh rate code back in. (mutter) --- stepmania/src/RageDisplay.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 7fd5c44850..3adfc0e1ab 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -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;