cleanup
This commit is contained in:
@@ -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_DEPTH_SIZE, 16);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, true);
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, true);
|
||||||
|
|
||||||
#if defined(_WINDOWS)
|
#if defined(LINUX)
|
||||||
SDL_SetRefreshRate( (p.rate == REFRESH_DEFAULT)? SDL_REFRESH_DEFAULT:p.rate );
|
|
||||||
#elif defined(LINUX)
|
|
||||||
/* nVidia cards:
|
/* nVidia cards:
|
||||||
*
|
*
|
||||||
* This only works the first time we set up a window; after that, the
|
* 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 );
|
putenv( buf );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32)
|
|
||||||
// mySDL_EventState(SDL_OPENGLRESET, SDL_ENABLE);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SDL_Surface *screen = SDL_SetVideoMode(p.width, p.height, p.bpp, flags);
|
SDL_Surface *screen = SDL_SetVideoMode(p.width, p.height, p.bpp, flags);
|
||||||
if(!screen)
|
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 );
|
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)
|
#if defined(unix)
|
||||||
{
|
{
|
||||||
SDL_SysWMinfo info;
|
SDL_SysWMinfo info;
|
||||||
|
|||||||
Reference in New Issue
Block a user