mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
[MSPAINT] Add const to some ImageModel methods
CORE-17931
This commit is contained in:
parent
4331b47c50
commit
ba117350eb
2 changed files with 10 additions and 10 deletions
|
@ -164,17 +164,17 @@ void ImageModel::SaveImage(LPTSTR lpFileName)
|
|||
SaveDIBToFile(hBms[currInd], lpFileName, hDrawingDC);
|
||||
}
|
||||
|
||||
BOOL ImageModel::IsImageSaved()
|
||||
BOOL ImageModel::IsImageSaved() const
|
||||
{
|
||||
return imageSaved;
|
||||
}
|
||||
|
||||
BOOL ImageModel::HasUndoSteps()
|
||||
BOOL ImageModel::HasUndoSteps() const
|
||||
{
|
||||
return undoSteps > 0;
|
||||
}
|
||||
|
||||
BOOL ImageModel::HasRedoSteps()
|
||||
BOOL ImageModel::HasRedoSteps() const
|
||||
{
|
||||
return redoSteps > 0;
|
||||
}
|
||||
|
@ -191,12 +191,12 @@ void ImageModel::StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSk
|
|||
NotifyImageChanged();
|
||||
}
|
||||
|
||||
int ImageModel::GetWidth()
|
||||
int ImageModel::GetWidth() const
|
||||
{
|
||||
return GetDIBWidth(hBms[currInd]);
|
||||
}
|
||||
|
||||
int ImageModel::GetHeight()
|
||||
int ImageModel::GetHeight() const
|
||||
{
|
||||
return GetDIBHeight(hBms[currInd]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue