From 6fdf6bfa578a5e7a2ebe8ee96e947389d4753ffd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 20 Jan 2005 02:07:02 +0000 Subject: [PATCH] cleanup --- .../LowLevelWindow/LowLevelWindow_SDL.cpp | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp index 4ddeacaa8f..76ab9c0c1f 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp @@ -111,9 +111,7 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool & SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, true); -#if defined(_WINDOWS) - SDL_SetRefreshRate( (p.rate == REFRESH_DEFAULT)? SDL_REFRESH_DEFAULT:p.rate ); -#elif defined(LINUX) +#if defined(LINUX) /* nVidia cards: * * This only works the first time we set up a window; after that, the @@ -125,10 +123,6 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool & putenv( buf ); #endif -#if defined(WIN32) -// mySDL_EventState(SDL_OPENGLRESET, SDL_ENABLE); -#endif - SDL_Surface *screen = SDL_SetVideoMode(p.width, p.height, p.bpp, flags); if(!screen) { @@ -148,26 +142,6 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool & LOG->Info( "SDL version: %i.%i.%i", ver->major, ver->minor, ver->patch ); } - /* XXX: This event only exists in the SDL tree, and is only needed in - * Windows. Eventually, it'll probably get upstreamed, and once it's - * in the real branch we can remove this #if. */ - /* Why did I comment this out? -Chris */ -#if defined(WIN32) -// SDL_Event e; -// if(SDL_GetEvent(e, SDL_OPENGLRESETMASK)) -// { -// LOG->Trace("New OpenGL context"); -// SDL_WM_SetCaption("StepMania", "StepMania"); -// NewOpenGLContext = true; -// } - - -// mySDL_EventState(SDL_OPENGLRESET, SDL_IGNORE); -#endif - - /* Recreating the window changes the hwnd. */ - SDL_UpdateHWnd(); - #if defined(unix) { SDL_SysWMinfo info;