mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[MSPAINT_NEW] initialize ImageModel member variables
svn path=/trunk/; revision=68563
This commit is contained in:
parent
4317118d34
commit
6fd38c7880
2 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,14 @@ void ImageModel::NotifyImageChanged()
|
|||
imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
|
||||
}
|
||||
|
||||
ImageModel::ImageModel()
|
||||
{
|
||||
currInd = 0;
|
||||
undoSteps = 0;
|
||||
redoSteps = 0;
|
||||
imageSaved = TRUE;
|
||||
}
|
||||
|
||||
void ImageModel::CopyPrevious()
|
||||
{
|
||||
DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]);
|
||||
|
|
|
@ -18,6 +18,7 @@ public:
|
|||
int redoSteps;
|
||||
BOOL imageSaved;
|
||||
|
||||
ImageModel();
|
||||
void CopyPrevious(void);
|
||||
void Undo(void);
|
||||
void Redo(void);
|
||||
|
|
Loading…
Reference in a new issue