summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2012-01-19 00:27:07 -0500
committerSam Lantinga <slouken@libsdl.org>2012-01-19 00:27:07 -0500
commit828aa39e40da3a20948d738fe9e69572dd5688a8 (patch)
treeaae4ac4d369345c75b36f4c728c92a261196c73c
parent45d51daae368467da82ecde7bf36d14865df1f51 (diff)
downloadsdl-828aa39e40da3a20948d738fe9e69572dd5688a8.tar.gz
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.
-rw-r--r--src/video/quartz/SDL_QuartzVideo.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m
index 570191477..fa04e9d10 100644
--- a/src/video/quartz/SDL_QuartzVideo.m
+++ b/src/video/quartz/SDL_QuartzVideo.m
@@ -840,7 +840,7 @@ static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int widt
if ( isLion ) {
[ qz_window setLevel:CGShieldingWindowLevel() ];
[ gl_context setView: window_view ];
- [ gl_context setFullScreen ];
+ //[ gl_context setFullScreen ];
[ gl_context update ];
}
@@ -903,6 +903,7 @@ static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int widt
if (isLion) {
[ qz_window setHasShadow:NO];
[ qz_window setOpaque:YES];
+ [ qz_window makeKeyAndOrderFront:nil ];
}
/* !!! FIXME: keep an eye on this.