comparison src/video/cocoa/SDL_cocoamodes.m @ 3248:cde30895105d

Added 64-bit architectures to the fat build script
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 10:39:18 +0000
parents c843261f74a4
children 00cace2d9080
comparison
equal deleted inserted replaced
3247:2dcfb4e07a57 3248:cde30895105d
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_cocoavideo.h" 24 #include "SDL_cocoavideo.h"
25 25
26 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 26 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
27 /* 27 /*
28 Add methods to get at private members of NSScreen. 28 Add methods to get at private members of NSScreen.
29 Since there is a bug in Apple's screen switching code 29 Since there is a bug in Apple's screen switching code
30 that does not update this variable when switching 30 that does not update this variable when switching
31 to fullscreen, we'll set it manually (but only for the 31 to fullscreen, we'll set it manually (but only for the
248 if (fade_token != kCGDisplayFadeReservationInvalidToken) { 248 if (fade_token != kCGDisplayFadeReservationInvalidToken) {
249 CGDisplayFade(fade_token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE); 249 CGDisplayFade(fade_token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE);
250 CGReleaseDisplayFadeReservation(fade_token); 250 CGReleaseDisplayFadeReservation(fade_token);
251 } 251 }
252 252
253 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 253 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
254 /* 254 /*
255 There is a bug in Cocoa where NSScreen doesn't synchronize 255 There is a bug in Cocoa where NSScreen doesn't synchronize
256 with CGDirectDisplay, so the main screen's frame is wrong. 256 with CGDirectDisplay, so the main screen's frame is wrong.
257 As a result, coordinate translation produces incorrect results. 257 As a result, coordinate translation produces incorrect results.
258 We can hack around this bug by setting the screen rect 258 We can hack around this bug by setting the screen rect