From 11c01a349f9f412fe9b31675cfc69686f47ea5f6 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sat, 24 Dec 2022 23:54:47 +0000 Subject: [PATCH] SDL_SetWindowFullscreen isn't needed as we call ResizeGLScreen which sets the fullscreen mode afterwards. --- Src/OSD/SDL/Main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index 2d4c357..239ecd8 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -205,10 +205,7 @@ static void SetFullScreenRefreshRate() if (mode.refresh_rate == 57 || mode.refresh_rate == 58) { // nvidia is fairly flexible in what refresh rate windows will show, so we can match either 57 or 58, int result = SDL_SetWindowDisplayMode(s_window, &mode); // both are totally non standard frequencies and shouldn't be set incorrectly if (result == 0) { - result = SDL_SetWindowFullscreen(s_window, SDL_WINDOW_FULLSCREEN); - if (result == 0) { - printf("Custom fullscreen mode set: %ix%i@57.524 Hz\n", mode.w, mode.h); - } + printf("Custom fullscreen mode set: %ix%i@57.524 Hz\n", mode.w, mode.h); } break; }