Use real fullscreen.

This commit is contained in:
Nicolás Ortega Froysa 2018-10-25 20:40:09 +02:00
parent d420f1aa35
commit 039ae5f134
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -73,11 +73,7 @@ int main(int argc, char *argv[]) {
} }
if(args.fullscreen) if(args.fullscreen)
{ SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN);
SDL_SetWindowBordered(window, SDL_FALSE);
SDL_SetWindowFullscreen(window,
SDL_WINDOW_FULLSCREEN_DESKTOP);
}
SDL_SetRelativeMouseMode(SDL_TRUE); SDL_SetRelativeMouseMode(SDL_TRUE);
SDL_GLContext glcontext = SDL_GL_CreateContext(window); SDL_GLContext glcontext = SDL_GL_CreateContext(window);