comparison src/video/cocoa/SDL_cocoamodes.m @ 4925:514f811a4887

Removed support for 10.3.9 Fixed building on Mac OS X 10.5
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Dec 2010 12:23:16 -0800
parents 3d91e31fcf71
children de89a6f73c06
comparison
equal deleted inserted replaced
4924:455c0dad84df 4925:514f811a4887
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 < 1050 26 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
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
288 CGReleaseDisplayFadeReservation(fade_token); 288 CGReleaseDisplayFadeReservation(fade_token);
289 } 289 }
290 290
291 [[NSApp mainWindow] makeKeyAndOrderFront: nil]; 291 [[NSApp mainWindow] makeKeyAndOrderFront: nil];
292 292
293 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1050 293 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
294 /* 294 /*
295 There is a bug in Cocoa where NSScreen doesn't synchronize 295 There is a bug in Cocoa where NSScreen doesn't synchronize
296 with CGDirectDisplay, so the main screen's frame is wrong. 296 with CGDirectDisplay, so the main screen's frame is wrong.
297 As a result, coordinate translation produces incorrect results. 297 As a result, coordinate translation produces incorrect results.
298 We can hack around this bug by setting the screen rect 298 We can hack around this bug by setting the screen rect