Skip to content
Permalink
Browse files

Quartz: minor deprecated function cleanups.

  • Loading branch information
icculus committed Jan 19, 2012
1 parent 4059307 commit f92c909ba47fa9d63b407924ef38eedd1b5b6014
Showing with 10 additions and 6 deletions.
  1. +10 −6 src/video/quartz/SDL_QuartzVideo.m
@@ -838,11 +838,14 @@ other blitting while waiting on the VBL (and hence results in higher framerates)
/* 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 @@ other blitting while waiting on the VBL (and hence results in higher framerates)
SDL_SetError ("Error setting OpenGL fullscreen: %s", CGLErrorString(err));
goto ERR_NO_GL;
}
}
}
#endif

[ window_view release ];
[ gl_context makeCurrentContext];

0 comments on commit f92c909

Please sign in to comment.