comparison src/video/cocoa/SDL_cocoamodes.m @ 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 a1bf34bc2a58
children b66c9e8090d4
comparison
equal deleted inserted replaced
3509:8fde6aeb58df 3510:58cbfa81317a
253 CG_SetError("CGDisplaySwitchToMode()", result); 253 CG_SetError("CGDisplaySwitchToMode()", result);
254 goto ERR_NO_SWITCH; 254 goto ERR_NO_SWITCH;
255 } 255 }
256 256
257 /* Hide the menu bar so it doesn't intercept events */ 257 /* Hide the menu bar so it doesn't intercept events */
258 HideMenuBar(); 258 if (CGDisplayIsMain(displaydata->display)) {
259 HideMenuBar();
260 }
259 261
260 /* Fade in again (asynchronously) */ 262 /* Fade in again (asynchronously) */
261 if (fade_token != kCGDisplayFadeReservationInvalidToken) { 263 if (fade_token != kCGDisplayFadeReservationInvalidToken) {
262 CGDisplayFade(fade_token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE); 264 CGDisplayFade(fade_token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE);
263 CGReleaseDisplayFadeReservation(fade_token); 265 CGReleaseDisplayFadeReservation(fade_token);