src/video/quartz/SDL_QuartzVideo.m
branchSDL-1.2
changeset 4319 edefeb52a627
parent 4317 719faf118c38
child 4340 0deabd35275b
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