projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
97025c3
)
[MSPAINT] When clicking selection, invalidate _and_ repaint Scroll Client _and_ Image...
author
Benedikt Freisen
<b.freisen@gmx.net>
Sat, 26 May 2018 11:23:20 +0000
(13:23 +0200)
committer
Benedikt Freisen
<b.freisen@gmx.net>
Sat, 26 May 2018 12:21:07 +0000
(14:21 +0200)
Previously, the canvas disappeared when a selection was clicked until the mouse was moved.
CORE-13288
base/applications/mspaint/selection.cpp
patch
|
blob
|
history
diff --git
a/base/applications/mspaint/selection.cpp
b/base/applications/mspaint/selection.cpp
index
9e5c689
..
368c71c
100644
(file)
--- 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;
}