mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[MSPAINT] Add const to SelectionModel::SetSrcAndDestRectFromPoints parameters
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
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.top = m_rcSrc.top = min(ptFrom.y, ptTo.y);
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
HBITMAP GetBitmap();
|
||||
int PtStackSize();
|
||||
void DrawFramePoly(HDC hDCImage);
|
||||
void SetSrcAndDestRectFromPoints(POINT& ptFrom, POINT& ptTo);
|
||||
void SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo);
|
||||
void SetSrcRectSizeToZero();
|
||||
BOOL IsSrcRectSizeNonzero();
|
||||
void ModifyDestRect(POINT& ptDelta, int iAction);
|
||||
|
||||
Reference in New Issue
Block a user