diff --git a/base/applications/mspaint/selectionmodel.cpp b/base/applications/mspaint/selectionmodel.cpp index 53f1395ca0a..aa6b8ef9f49 100644 --- a/base/applications/mspaint/selectionmodel.cpp +++ b/base/applications/mspaint/selectionmodel.cpp @@ -224,12 +224,12 @@ void SelectionModel::RotateNTimes90Degrees(int iN) NotifyRefreshNeeded(); } -HBITMAP SelectionModel::GetBitmap() +HBITMAP SelectionModel::GetBitmap() const { return m_hBm; } -int SelectionModel::PtStackSize() +int SelectionModel::PtStackSize() const { return m_iPtSP; } @@ -253,7 +253,7 @@ void SelectionModel::SetSrcRectSizeToZero() m_rcSrc.bottom = m_rcSrc.top; } -BOOL SelectionModel::IsSrcRectSizeNonzero() +BOOL SelectionModel::IsSrcRectSizeNonzero() const { return (RECT_WIDTH(m_rcSrc) != 0) && (RECT_HEIGHT(m_rcSrc) != 0); } @@ -318,22 +318,22 @@ void SelectionModel::ModifyDestRect(POINT& ptDelta, int iAction) ptDelta.y -= ptDeltaUsed.y; } -LONG SelectionModel::GetDestRectWidth() +LONG SelectionModel::GetDestRectWidth() const { return m_rcDest.right - m_rcDest.left; } -LONG SelectionModel::GetDestRectHeight() +LONG SelectionModel::GetDestRectHeight() const { return m_rcDest.bottom - m_rcDest.top; } -LONG SelectionModel::GetDestRectLeft() +LONG SelectionModel::GetDestRectLeft() const { return m_rcDest.left; } -LONG SelectionModel::GetDestRectTop() +LONG SelectionModel::GetDestRectTop() const { return m_rcDest.top; } diff --git a/base/applications/mspaint/selectionmodel.h b/base/applications/mspaint/selectionmodel.h index c52c743a7af..9ed0f2faa46 100644 --- a/base/applications/mspaint/selectionmodel.h +++ b/base/applications/mspaint/selectionmodel.h @@ -54,17 +54,17 @@ public: void FlipHorizontally(); void FlipVertically(); void RotateNTimes90Degrees(int iN); - HBITMAP GetBitmap(); - int PtStackSize(); + HBITMAP GetBitmap() const; + int PtStackSize() const; void DrawFramePoly(HDC hDCImage); void SetSrcAndDestRectFromPoints(const POINT& ptFrom, const POINT& ptTo); void SetSrcRectSizeToZero(); - BOOL IsSrcRectSizeNonzero(); + BOOL IsSrcRectSizeNonzero() const; void ModifyDestRect(POINT& ptDelta, int iAction); - LONG GetDestRectWidth(); - LONG GetDestRectHeight(); - LONG GetDestRectLeft(); - LONG GetDestRectTop(); + LONG GetDestRectWidth() const; + LONG GetDestRectHeight() const; + LONG GetDestRectLeft() const; + LONG GetDestRectTop() const; void DrawTextToolText(HDC hDCImage, COLORREF crFg, COLORREF crBg, BOOL bBgTransparent = FALSE); private: