SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size

This commit is contained in:
James R. 2023-09-30 16:07:53 -07:00
parent f522cae573
commit 18efb35602

View file

@ -235,6 +235,11 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen, SDL_bool
SDL_GetWindowSize(window, &width, &height);
vid.realwidth = static_cast<uint32_t>(width);
vid.realheight = static_cast<uint32_t>(height);
if (graphics_started)
{
I_UpdateNoVsync();
}
}
static INT32 Impl_SDL_Scancode_To_Keycode(SDL_Scancode code)