comparison src/video/quartz/SDL_QuartzVideo.m @ 4319:edefeb52a627 SDL-1.2

Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need to be fixed up.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 15:10:06 +0000
parents 719faf118c38
children 0deabd35275b
comparison
equal deleted inserted replaced
4318:34a0a589b9c4 4319:edefeb52a627
200 NSRect r = NSMakeRect(0.0, 0.0, 0.0, 0.0); 200 NSRect r = NSMakeRect(0.0, 0.0, 0.0, 0.0);
201 const char *env = NULL; 201 const char *env = NULL;
202 202
203 /* Initialize the video settings; this data persists between mode switches */ 203 /* Initialize the video settings; this data persists between mode switches */
204 display_id = kCGDirectMainDisplay; 204 display_id = kCGDirectMainDisplay;
205
206 #if 0 /* The mouse event code needs to take this into account... */
207 env = getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
208 if ( env ) {
209 int monitor = SDL_atoi(env);
210 CGDirectDisplayID activeDspys [3];
211 CGDisplayCount dspyCnt;
212 CGGetActiveDisplayList (3, activeDspys, &dspyCnt);
213 if ( monitor >= 0 && monitor < dspyCnt ) {
214 display_id = activeDspys[monitor];
215 }
216 }
217 #endif
205 218
206 save_mode = CGDisplayCurrentMode (display_id); 219 save_mode = CGDisplayCurrentMode (display_id);
207 mode_list = CGDisplayAvailableModes (display_id); 220 mode_list = CGDisplayAvailableModes (display_id);
208 palette = CGPaletteCreateDefaultColorPalette (); 221 palette = CGPaletteCreateDefaultColorPalette ();
209 222