Skip to content

Commit

Permalink
Quartz: Only use ShowMenuBar()/HideMenuBar() for legacy OS releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 13, 2011
1 parent dd89a9a commit eddbc01
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -574,7 +574,17 @@ static void QZ_UnsetVideoMode (_THIS, BOOL to_desktop)
#endif
}
if (to_desktop) {
ShowMenuBar ();
/* !!! FIXME: keep an eye on this.
* This API is officially unavailable for 64-bit binaries.
* It happens to work, as of 10.7, but we're going to see if
* we can just simply do without it on newer OSes...
*/
#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) && !defined(__LP64__)
if ( !IS_LION_OR_LATER(this) ) {
ShowMenuBar ();
}
#endif

/* Restore original screen resolution/bpp */
QZ_RestoreDisplayMode (this);
CGReleaseAllDisplays ();
Expand Down Expand Up @@ -869,8 +879,17 @@ other blitting while waiting on the VBL (and hence results in higher framerates)
[ qz_window makeKeyAndOrderFront:nil ];
}

/* If we don't hide menu bar, it will get events and interrupt the program */
HideMenuBar ();
/* !!! FIXME: keep an eye on this.
* This API is officially unavailable for 64-bit binaries.
* It happens to work, as of 10.7, but we're going to see if
* we can just simply do without it on newer OSes...
*/
#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070) && !defined(__LP64__)
if ( !IS_LION_OR_LATER(this) ) {
/* If we don't hide menu bar, it will get events and interrupt the program */
HideMenuBar ();
}
#endif

/* Fade in again (asynchronously) */
if ( fade_token != kCGDisplayFadeReservationInvalidToken ) {
Expand Down

0 comments on commit eddbc01

Please sign in to comment.