# HG changeset patch # User Sam Lantinga # Date 1326950827 18000 # Node ID fdb37a6dc4072d45be5f5822e7fae108623e9d29 # Parent 9113ae840e93d7e051834e7d50efb5f14ac0a786 More gyrations trying to get SDL 1.2 to work correctly on all Mac OS X versions. Lion gets mad if you try to set a fullscreen context linked with the new SDK and using these APIs. We're going to try to do this smarter in 1.3, but let's just make it work. diff -r 9113ae840e93 -r fdb37a6dc407 src/video/quartz/SDL_QuartzVideo.m --- a/src/video/quartz/SDL_QuartzVideo.m Wed Jan 18 19:23:05 2012 -0500 +++ b/src/video/quartz/SDL_QuartzVideo.m Thu Jan 19 00:27:07 2012 -0500 @@ -840,7 +840,7 @@ if ( isLion ) { [ qz_window setLevel:CGShieldingWindowLevel() ]; [ gl_context setView: window_view ]; - [ gl_context setFullScreen ]; + //[ gl_context setFullScreen ]; [ gl_context update ]; } @@ -903,6 +903,7 @@ if (isLion) { [ qz_window setHasShadow:NO]; [ qz_window setOpaque:YES]; + [ qz_window makeKeyAndOrderFront:nil ]; } /* !!! FIXME: keep an eye on this.