https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bddd8b058ced75c39325d7...
commit bddd8b058ced75c39325d792937a39f1d7afea14 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Wed May 31 13:31:50 2023 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Wed May 31 13:31:50 2023 +0900
[MSPAINT] Minor adjustment on drawing text on TOOL_TEXT
CORE-18867 --- base/applications/mspaint/mouse.cpp | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/base/applications/mspaint/mouse.cpp b/base/applications/mspaint/mouse.cpp index a412219e0bb..9fe51d00044 100644 --- a/base/applications/mspaint/mouse.cpp +++ b/base/applications/mspaint/mouse.cpp @@ -445,7 +445,9 @@ struct TextTool : ToolBase RECT rc; textEditWindow.InvalidateEditRect(); textEditWindow.GetEditRect(&rc); + ::InflateRect(&rc, -GRIP_SIZE / 2, -GRIP_SIZE / 2);
+ // Draw the text INT style = (toolsModel.IsBackgroundTransparent() ? 0 : 1); imageModel.CopyPrevious(); Text(m_hdc, rc.left, rc.top, rc.right, rc.bottom, m_fg, m_bg, szText,