From 92c0ddd068fbe8c67975c258ef23c0fe5aa2f150 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 20 Dec 2024 11:35:22 +0100 Subject: [PATCH] always reset those just in case --- src/sdl/i_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index b07e29463..ca81b8043 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -710,6 +710,9 @@ static void I_CheckDesktopRes(void) return; } + desktopwidth = 0; + desktopheight = 0; + currentDisplayIndex = SDL_GetWindowDisplayIndex(window); // No valid index