# HG changeset patch # User Sam Lantinga # Date 1255187406 0 # Node ID edefeb52a62750191dcd14781ae7473cc1ecdf61 # Parent 34a0a589b9c4904432e3d00748f94e0ce73e98a6 Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need to be fixed up. diff -r 34a0a589b9c4 -r edefeb52a627 src/video/quartz/SDL_QuartzVideo.m --- a/src/video/quartz/SDL_QuartzVideo.m Sat Oct 10 15:06:04 2009 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Sat Oct 10 15:10:06 2009 +0000 @@ -203,6 +203,19 @@ /* 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 ();