Skip to content
Permalink
Browse files
Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need…
… to be fixed up.
  • Loading branch information
slouken committed Oct 10, 2009
1 parent 2d91b7a commit 609e33421413dafe246ed93c72042450a1a2d4ad
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/video/quartz/SDL_QuartzVideo.m
@@ -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 ();

0 comments on commit 609e334

Please sign in to comment.