mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-19 19:44:43 +08:00
Always defer resize, to help eliminate flickering (but still working on that)
This commit is contained in:
@@ -3525,14 +3525,8 @@ static void HandleVideoResize(void * event) {
|
||||
if (NonUserResizeCounter > 0)
|
||||
NonUserResizeCounter--;
|
||||
|
||||
if (sdl.updating && !GFX_MustActOnResize()) {
|
||||
/* act on resize when updating is complete */
|
||||
sdl.deferred_resize = true;
|
||||
}
|
||||
else {
|
||||
sdl.deferred_resize = false;
|
||||
RedrawScreen(ResizeEvent->w, ResizeEvent->h);
|
||||
}
|
||||
/* act on resize when updating is complete */
|
||||
sdl.deferred_resize = true;
|
||||
|
||||
/* if(sdl.desktop.want_type!=SCREEN_DIRECT3D) {
|
||||
HWND hwnd=GetHWND();
|
||||
|
Reference in New Issue
Block a user