mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[MSPAINT] Minor adjustment on drawing text on TOOL_TEXT
CORE-18867
This commit is contained in:
parent
aeffa57ec7
commit
bddd8b058c
1 changed files with 2 additions and 0 deletions
|
@ -445,7 +445,9 @@ struct TextTool : ToolBase
|
||||||
RECT rc;
|
RECT rc;
|
||||||
textEditWindow.InvalidateEditRect();
|
textEditWindow.InvalidateEditRect();
|
||||||
textEditWindow.GetEditRect(&rc);
|
textEditWindow.GetEditRect(&rc);
|
||||||
|
::InflateRect(&rc, -GRIP_SIZE / 2, -GRIP_SIZE / 2);
|
||||||
|
|
||||||
|
// Draw the text
|
||||||
INT style = (toolsModel.IsBackgroundTransparent() ? 0 : 1);
|
INT style = (toolsModel.IsBackgroundTransparent() ? 0 : 1);
|
||||||
imageModel.CopyPrevious();
|
imageModel.CopyPrevious();
|
||||||
Text(m_hdc, rc.left, rc.top, rc.right, rc.bottom, m_fg, m_bg, szText,
|
Text(m_hdc, rc.left, rc.top, rc.right, rc.bottom, m_fg, m_bg, szText,
|
||||||
|
|
Loading…
Reference in a new issue