From bd186569de1b9a65ae8c90c3d816437b103f21b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20R=2E=20Miguel?= Date: Mon, 18 May 2020 00:28:05 -0300 Subject: [PATCH] Fixes --fullscreen and --windowed problems --- src/pc/gfx/gfx_sdl2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pc/gfx/gfx_sdl2.c b/src/pc/gfx/gfx_sdl2.c index e34086bf..363d9209 100644 --- a/src/pc/gfx/gfx_sdl2.c +++ b/src/pc/gfx/gfx_sdl2.c @@ -163,9 +163,13 @@ static void gfx_sdl_init(void) { //SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); //SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); - if (gCLIOpts.FullScreen) + if (gCLIOpts.FullScreen == 1) configWindow.fullscreen = true; + if (gCLIOpts.FullScreen == 2) + configWindow.fullscreen = false; + + const char* window_title = #ifndef USE_GLES "Super Mario 64 PC port (OpenGL)";