Some tweaks to resizing, considerably reduces the stalls.
This commit is contained in:
@@ -543,7 +543,7 @@ sdl_enable(int enable)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
SDL_LockMutex(sdl_mutex);
|
SDL_LockMutex(sdl_mutex);
|
||||||
sdl_enabled = enable;
|
sdl_enabled = !!enable;
|
||||||
|
|
||||||
if (enable == 1) {
|
if (enable == 1) {
|
||||||
SDL_SetWindowSize(sdl_win, cur_ww, cur_wh);
|
SDL_SetWindowSize(sdl_win, cur_ww, cur_wh);
|
||||||
|
@@ -853,10 +853,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
window_h = rect.bottom - rect.top;
|
window_h = rect.bottom - rect.top;
|
||||||
save_window_pos = 1;
|
save_window_pos = 1;
|
||||||
}
|
}
|
||||||
plat_vidapi_enable(1);
|
plat_vidapi_enable(2);
|
||||||
|
|
||||||
plat_vidapi_enable(0);
|
|
||||||
plat_vidapi_enable(1);
|
|
||||||
|
|
||||||
config_save();
|
config_save();
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user