From b2f46349cacec9011de7f1eebe1283a997daba5b Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Fri, 16 Feb 2018 23:25:23 +0300 Subject: [PATCH] removed fullscreen flag --- src/system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/system.c b/src/system.c index f8c41f0..4143f75 100644 --- a/src/system.c +++ b/src/system.c @@ -57,7 +57,6 @@ static struct Net* net; bool missedFrame; - bool fullscreen; struct { @@ -884,8 +883,7 @@ static u64 getPerformanceFrequency() static void goFullscreen() { - platform.fullscreen = !platform.fullscreen; - SDL_SetWindowFullscreen(platform.window, platform.fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0); + SDL_SetWindowFullscreen(platform.window, SDL_GetWindowFlags(platform.window) & SDL_WINDOW_FULLSCREEN_DESKTOP ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP); } static void showMessageBox(const char* title, const char* message)