https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cca1a3f47f3694ec57bc8e2b13278749594be902
commit cca1a3f47f3694ec57bc8e2b13278749594be902 Author: Benedikt Freisen <[email protected]> AuthorDate: Sat May 26 13:23:20 2018 +0200 Commit: Benedikt Freisen <[email protected]> CommitDate: Sat May 26 14:21:07 2018 +0200 [MSPAINT] When clicking selection, invalidate _and_ repaint Scroll Client _and_ Image Area Previously, the canvas disappeared when a selection was clicked until the mouse was moved. CORE-13288 --- base/applications/mspaint/selection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/applications/mspaint/selection.cpp b/base/applications/mspaint/selection.cpp index 9e5c689038..368c71c71f 100644 --- a/base/applications/mspaint/selection.cpp +++ b/base/applications/mspaint/selection.cpp @@ -148,6 +148,8 @@ LRESULT CSelectionWindow::OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, SetCursor(LoadCursor(NULL, m_lpszCursorLUT[m_iAction])); m_bMoving = TRUE; scrlClientWindow.InvalidateRect(NULL, TRUE); + scrlClientWindow.SendMessage(WM_PAINT, 0, 0); + imageArea.InvalidateRect(NULL, FALSE); imageArea.SendMessage(WM_PAINT, 0, 0); return 0; }
