Default to windowed mode in OS X, as there is an SDL bug that can cause

crashing in fullscreen mode (thanks Ryan Peel).

Subversion-branch: /branches/v2-branch
Subversion-revision: 2721
This commit is contained in:
Simon Howard 2013-10-26 21:26:56 +00:00
parent 2d6b1a9263
commit 14d3126d2f
2 changed files with 27 additions and 0 deletions

View file

@ -2060,6 +2060,15 @@ void I_InitGraphics(void)
I_InitWindowIcon();
#endif
// Warning to OS X users... though they might never see it :(
#ifdef __MACOSX__
if (fullscreen)
{
printf("Some old versions of OS X might crash in fullscreen mode.\n"
"If this happens to you, switch back to windowed mode.\n");
}
#endif
//
// Enter into graphics mode.
//
@ -2222,4 +2231,13 @@ void I_BindVideoVariables(void)
}
}
#endif
// Disable fullscreen by default on OS X, as there is an SDL bug
// where some old versions of OS X (<= Snow Leopard) crash.
#ifdef __MACOSX__
fullscreen = 0;
screen_width = 800;
screen_height = 600;
#endif
}

View file

@ -743,4 +743,13 @@ void BindDisplayVariables(void)
}
}
#endif
// Disable fullscreen by default on OS X, as there is an SDL bug
// where some old versions of OS X (<= Snow Leopard) crash.
#ifdef __MACOSX__
fullscreen = 0;
screen_width = 800;
screen_height = 600;
#endif
}