[MSPAINT] Add const to SelectionModel::SetSrcAndDestRectFromPoints parameters

This commit is contained in:
Katayama Hirofumi MZ 2019-12-24 13:08:35 +09:00
parent aca7ff54b0
commit d9b2edcc59
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);