Skip to content

Commit

Permalink
Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need…
Browse files Browse the repository at this point in the history
… to be fixed up.
  • Loading branch information
slouken committed Oct 10, 2009
1 parent 2d91b7a commit 609e334
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -203,6 +203,19 @@ static int QZ_VideoInit (_THIS, SDL_PixelFormat *video_format)
/* Initialize the video settings; this data persists between mode switches */
display_id = kCGDirectMainDisplay;

#if 0 /* The mouse event code needs to take this into account... */
env = getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
if ( env ) {
int monitor = SDL_atoi(env);
CGDirectDisplayID activeDspys [3];
CGDisplayCount dspyCnt;
CGGetActiveDisplayList (3, activeDspys, &dspyCnt);
if ( monitor >= 0 && monitor < dspyCnt ) {
display_id = activeDspys[monitor];
}
}
#endif

save_mode = CGDisplayCurrentMode (display_id);
mode_list = CGDisplayAvailableModes (display_id);
palette = CGPaletteCreateDefaultColorPalette ();
Expand Down

0 comments on commit 609e334

Please sign in to comment.