From 44013064e0ce02e5f5c064dfa30d4a38ab8a2a64 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Wed, 29 Aug 2018 19:17:40 -0500 Subject: [PATCH] Fix flickering window on move Using this method perform very minor flicker when moving around on screen. --- src/Cxbx/WndMain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Cxbx/WndMain.cpp b/src/Cxbx/WndMain.cpp index fc725bfd1..aaacdf5bd 100644 --- a/src/Cxbx/WndMain.cpp +++ b/src/Cxbx/WndMain.cpp @@ -1301,8 +1301,7 @@ LRESULT CALLBACK WndMain::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP { // Redraw the window on move, prevents corrupt background image that happens // when windows doesn't call the WM_DRAW event when the window is moved too quickly. - InvalidateRect(NULL, NULL, false); - UpdateWindow(hwnd); + RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE); break; }