Skip to content

Commit

Permalink
Quartz: minor deprecated function cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 19, 2012
1 parent 4059307 commit f92c909
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -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;

Expand All @@ -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];
Expand Down

0 comments on commit f92c909

Please sign in to comment.