Quartz: minor deprecated function cleanups. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Jan 2012 19:00:38 -0500
branchSDL-1.2
changeset 6229 920d0bca1f36
parent 6228 adbb020cb5a2
child 6230 9113ae840e93
Quartz: minor deprecated function cleanups.
src/video/quartz/SDL_QuartzVideo.m
--- a/src/video/quartz/SDL_QuartzVideo.m	Wed Jan 18 19:00:03 2012 -0500
+++ b/src/video/quartz/SDL_QuartzVideo.m	Wed Jan 18 19:00:38 2012 -0500
@@ -838,11 +838,14 @@
         /* Apparently Lion checks some version flag set by the linker
            and changes API behavior. Annoying. */
         if ( isLion ) {
-		[ qz_window setLevel:CGShieldingWindowLevel() ];
-		[ gl_context setView: window_view ];
-		[ gl_context setFullScreen ];
-		[ gl_context update ];
-	} else {
+            [ qz_window setLevel:CGShieldingWindowLevel() ];
+            [ gl_context setView: window_view ];
+            [ gl_context setFullScreen ];
+            [ gl_context update ];
+        }
+
+#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
+        if ( !isLion ) {
             CGLError err;
             CGLContextObj ctx;
 
@@ -854,7 +857,8 @@
                 SDL_SetError ("Error setting OpenGL fullscreen: %s", CGLErrorString(err));
                 goto ERR_NO_GL;
             }
-	}
+        }
+#endif
 
         [ window_view release ];
         [ gl_context makeCurrentContext];