src/video/quartz/SDL_QuartzVideo.m
branchSDL-1.2
changeset 6173 5619adf4736d
parent 6158 6f3a2bb301d6
child 6228 adbb020cb5a2
--- a/src/video/quartz/SDL_QuartzVideo.m	Sat Jan 07 02:07:38 2012 -0500
+++ b/src/video/quartz/SDL_QuartzVideo.m	Sat Jan 07 13:52:10 2012 -0500
@@ -837,8 +837,12 @@
 
         /* 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 @@
                 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];