Merge pull request #1421 from RadWolfie/minor-fixup-for-wm_move
Fix flickering window on move
This commit is contained in:
commit
b40431f976
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue