diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m index d86974c66..df2d12762 100644 --- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -837,8 +837,12 @@ static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int widt /* Apparently Lion checks some version flag set by the linker and changes API behavior. Annoying. */ -#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) - { + if ( isLion ) { + [ qz_window setLevel:CGShieldingWindowLevel() ]; + [ gl_context setView: window_view ]; + [ gl_context setFullScreen ]; + [ gl_context update ]; + } else { CGLError err; CGLContextObj ctx; @@ -850,13 +854,7 @@ static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int widt SDL_SetError ("Error setting OpenGL fullscreen: %s", CGLErrorString(err)); goto ERR_NO_GL; } - } -#else - [ qz_window setLevel:CGShieldingWindowLevel() ]; - [ gl_context setView: window_view ]; - [ gl_context setFullScreen ]; - [ gl_context update ]; -#endif + } [ window_view release ]; [ gl_context makeCurrentContext];