use the host-OS' desktop resolution, when entering full-screen. This enables use of Mac OS X's "Spaces" feature, when going to fullscreen.

This commit is contained in:
David Ludwig 2017-07-22 20:40:31 -04:00
parent cb982ee2ed
commit 1d5b8e95af
1 changed files with 1 additions and 1 deletions

View File

@ -689,7 +689,7 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
shutdown_sdl_video();
return NULL;
}
window_flags |= SDL_WINDOW_FULLSCREEN;
window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
window_width = desktop_mode.w;
window_height = desktop_mode.h;
}