https://git.reactos.org/?p=reactos.git;a=commitdiff;h=132f482de2d997d573c24…
commit 132f482de2d997d573c24b03e521cb2c122d49ce
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Apr 9 08:23:44 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sun Apr 9 08:23:44 2023 +0900
[MSPAINT] imageSaved = FALSE after image size change
...and redraw canvas after image resizing is canceled.
CORE-18867
---
base/applications/mspaint/canvas.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/base/applications/mspaint/canvas.cpp b/base/applications/mspaint/canvas.cpp
index 000a44d7987..4b69c9d25f7 100644
--- a/base/applications/mspaint/canvas.cpp
+++ b/base/applications/mspaint/canvas.cpp
@@ -596,6 +596,8 @@ LRESULT CCanvasWindow::OnLRButtonUp(BOOL bLeftButton, UINT nMsg,
WPARAM wParam,
}
::SetRectEmpty(&m_rcNew);
+ imageSaved = FALSE;
+
m_whereHit = HIT_NONE;
toolsModel.resetTool(); // resets the point-buffer of the polygon and bezier
functions
Update(NULL);
@@ -668,6 +670,7 @@ LRESULT CCanvasWindow::OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM
lParam, BOOL&
// Cancel dragging
m_whereHit = HIT_NONE;
::ReleaseCapture();
+ Invalidate(TRUE);
}
return 0;