Merge pull request #1421 from RadWolfie/minor-fixup-for-wm_move

Fix flickering window on move
This commit is contained in:
Luke Usher 2018-08-30 07:22:43 +01:00 committed by GitHub
commit b40431f976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}