mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size
This commit is contained in:
parent
f522cae573
commit
18efb35602
1 changed files with 5 additions and 0 deletions
|
|
@ -235,6 +235,11 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen, SDL_bool
|
||||||
SDL_GetWindowSize(window, &width, &height);
|
SDL_GetWindowSize(window, &width, &height);
|
||||||
vid.realwidth = static_cast<uint32_t>(width);
|
vid.realwidth = static_cast<uint32_t>(width);
|
||||||
vid.realheight = static_cast<uint32_t>(height);
|
vid.realheight = static_cast<uint32_t>(height);
|
||||||
|
|
||||||
|
if (graphics_started)
|
||||||
|
{
|
||||||
|
I_UpdateNoVsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static INT32 Impl_SDL_Scancode_To_Keycode(SDL_Scancode code)
|
static INT32 Impl_SDL_Scancode_To_Keycode(SDL_Scancode code)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue