From 33b51deb76ef767f50b1b3ad4e90ca2bbfcc8255 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Sat, 12 May 2018 18:58:34 -0700 Subject: [PATCH] Always defer resize, to help eliminate flickering (but still working on that) --- src/gui/sdlmain.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index cbfd3326c..1b0b3e7c3 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -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();