mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:02:07 +00:00
[MSPAINT] s/Bound/Clamp/
CORE-18867
This commit is contained in:
parent
ec53d42278
commit
d04e049284
3 changed files with 7 additions and 7 deletions
|
@ -159,7 +159,7 @@ struct FreeSelTool : ToolBase
|
|||
if (bLeftButton)
|
||||
{
|
||||
POINT pt = { x, y };
|
||||
imageModel.Bound(pt);
|
||||
imageModel.Clamp(pt);
|
||||
selectionModel.PushToPtStack(pt);
|
||||
imageModel.NotifyImageChanged();
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ struct RectSelTool : ToolBase
|
|||
if (bLeftButton)
|
||||
{
|
||||
POINT pt = { x, y };
|
||||
imageModel.Bound(pt);
|
||||
imageModel.Clamp(pt);
|
||||
selectionModel.SetRectFromPoints(g_ptStart, pt);
|
||||
imageModel.NotifyImageChanged();
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ struct RectSelTool : ToolBase
|
|||
POINT pt = { x, y };
|
||||
if (bLeftButton)
|
||||
{
|
||||
imageModel.Bound(pt);
|
||||
imageModel.Clamp(pt);
|
||||
selectionModel.SetRectFromPoints(g_ptStart, pt);
|
||||
selectionModel.m_bShow = !selectionModel.m_rc.IsRectEmpty();
|
||||
imageModel.NotifyImageChanged();
|
||||
|
@ -528,7 +528,7 @@ struct TextTool : ToolBase
|
|||
void UpdatePoint(LONG x, LONG y)
|
||||
{
|
||||
POINT pt = { x, y };
|
||||
imageModel.Bound(pt);
|
||||
imageModel.Clamp(pt);
|
||||
selectionModel.SetRectFromPoints(g_ptStart, pt);
|
||||
imageModel.NotifyImageChanged();
|
||||
}
|
||||
|
@ -572,7 +572,7 @@ struct TextTool : ToolBase
|
|||
void OnButtonUp(BOOL bLeftButton, LONG x, LONG y) override
|
||||
{
|
||||
POINT pt = { x, y };
|
||||
imageModel.Bound(pt);
|
||||
imageModel.Clamp(pt);
|
||||
selectionModel.SetRectFromPoints(g_ptStart, pt);
|
||||
|
||||
BOOL bTextBoxShown = ::IsWindowVisible(textEditWindow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue