- disabled annoying macOS spaces in SDL backend

This commit is contained in:
alexey.lysiuk 2018-06-29 11:57:01 +03:00
parent c30505d02a
commit 6e4c0fc416

View file

@ -69,6 +69,10 @@ void I_ShutdownGraphics ()
void I_InitGraphics () void I_InitGraphics ()
{ {
#ifdef __APPLE__
SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0");
#endif // __APPLE__
if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0) if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0)
{ {
I_FatalError ("Could not initialize SDL video:\n%s\n", SDL_GetError()); I_FatalError ("Could not initialize SDL video:\n%s\n", SDL_GetError());