mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:32:59 +00:00
[MSPAINT] Add const to SelectionModel::SetSrcAndDestRectFromPoints parameters
This commit is contained in:
parent
aca7ff54b0
commit
d9b2edcc59
2 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ void SelectionModel::DrawFramePoly(HDC hDCImage)
|
||||||
Poly(hDCImage, m_ptStack, m_iPtSP, 0, 0, 2, 0, FALSE, TRUE); /* draw the freehand selection inverted/xored */
|
Poly(hDCImage, m_ptStack, m_iPtSP, 0, 0, 2, 0, FALSE, TRUE); /* draw the freehand selection inverted/xored */
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectionModel::SetSrcAndDestRectFromPoints(POINT& ptFrom, POINT& ptTo)
|
void SelectionModel::SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo)
|
||||||
{
|
{
|
||||||
m_rcDest.left = m_rcSrc.left = min(ptFrom.x, ptTo.x);
|
m_rcDest.left = m_rcSrc.left = min(ptFrom.x, ptTo.x);
|
||||||
m_rcDest.top = m_rcSrc.top = min(ptFrom.y, ptTo.y);
|
m_rcDest.top = m_rcSrc.top = min(ptFrom.y, ptTo.y);
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
HBITMAP GetBitmap();
|
HBITMAP GetBitmap();
|
||||||
int PtStackSize();
|
int PtStackSize();
|
||||||
void DrawFramePoly(HDC hDCImage);
|
void DrawFramePoly(HDC hDCImage);
|
||||||
void SetSrcAndDestRectFromPoints(POINT& ptFrom, POINT& ptTo);
|
void SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo);
|
||||||
void SetSrcRectSizeToZero();
|
void SetSrcRectSizeToZero();
|
||||||
BOOL IsSrcRectSizeNonzero();
|
BOOL IsSrcRectSizeNonzero();
|
||||||
void ModifyDestRect(POINT& ptDelta, int iAction);
|
void ModifyDestRect(POINT& ptDelta, int iAction);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue