API update
This commit is contained in:
@@ -100,11 +100,8 @@ 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);
|
||||||
|
|
||||||
#ifdef SDL_HAS_REFRESH_RATE
|
#if defined(_WINDOWS)
|
||||||
if( p.rate == REFRESH_DEFAULT )
|
SDL_SetRefreshRate( (p.rate == REFRESH_DEFAULT)? SDL_REFRESH_DEFAULT:p.rate );
|
||||||
SDL_SM_SetRefreshRate(0);
|
|
||||||
else
|
|
||||||
SDL_SM_SetRefreshRate(p.rate);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user