Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Quartz: minor deprecated function cleanups.
- Loading branch information
Showing
with
10 additions
and
6 deletions.
-
+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]; |
|
|