Some tweaks to resizing, considerably reduces the stalls.

This commit is contained in:
OBattler
2020-11-29 00:55:24 +01:00
parent b754217fc4
commit a1bb128cd9
2 changed files with 2 additions and 5 deletions

View File

@@ -543,7 +543,7 @@ sdl_enable(int enable)
return;
SDL_LockMutex(sdl_mutex);
sdl_enabled = enable;
sdl_enabled = !!enable;
if (enable == 1) {
SDL_SetWindowSize(sdl_win, cur_ww, cur_wh);