Mercurial > sdl-ios-xcode
changeset 3510:58cbfa81317a
Don't need to hide the menu bar if we're not on the main display
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 02 Dec 2009 07:28:58 +0000 |
parents | 8fde6aeb58df |
children | 42cfa69e351b |
files | src/video/cocoa/SDL_cocoamodes.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamodes.m Wed Dec 02 07:25:06 2009 +0000 +++ b/src/video/cocoa/SDL_cocoamodes.m Wed Dec 02 07:28:58 2009 +0000 @@ -255,7 +255,9 @@ } /* Hide the menu bar so it doesn't intercept events */ - HideMenuBar(); + if (CGDisplayIsMain(displaydata->display)) { + HideMenuBar(); + } /* Fade in again (asynchronously) */ if (fade_token != kCGDisplayFadeReservationInvalidToken) {