Skip to content

Commit 8b45da6

Browse files
roybaerJoachimHenze
authored andcommitted
[0.4.9] cherry-pick [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 & CORE-10053 (cherry picked from commit cca1a3f)
1 parent 4968763 commit 8b45da6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/applications/mspaint/selection.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ LRESULT CSelectionWindow::OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam,
148148
SetCursor(LoadCursor(NULL, m_lpszCursorLUT[m_iAction]));
149149
m_bMoving = TRUE;
150150
scrlClientWindow.InvalidateRect(NULL, TRUE);
151+
scrlClientWindow.SendMessage(WM_PAINT, 0, 0);
152+
imageArea.InvalidateRect(NULL, FALSE);
151153
imageArea.SendMessage(WM_PAINT, 0, 0);
152154
return 0;
153155
}

0 commit comments

Comments
 (0)