Commit 56967065 authored by Sam Lantinga's avatar Sam Lantinga

Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need to be fixed up.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404043
parent 007680c4
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment