From 60a4127216f94dba3863dbc98cbbbdc2eea1a904 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 14 Feb 2018 12:40:53 +0100 Subject: [PATCH] On receiving the WM_MOVE message, the main thread is now told to issue another window resize if window is not in resizable mode, fixes the last glitches when moving during resize. --- src/win/win_ui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 61c00ee41..524a0f45e 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -8,7 +8,7 @@ * * user Interface module for WinAPI on Windows. * - * Version: @(#)win_ui.c 1.0.19 2018/02/14 + * Version: @(#)win_ui.c 1.0.20 2018/02/14 * * Authors: Sarah Walker, * Miran Grca, @@ -643,6 +643,11 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case WM_MOVE: + /* If window is not resizable, then tell the main thread to + resize it, as sometimes, moves can mess up the window size. */ + if (!vid_resize) + doresize = 1; + if (window_remember) { GetWindowRect(hwnd, &rect); window_x = rect.left;