mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[MSPAINT] Delete needless ImageModel::ResetToPrevious
CORE-19094
This commit is contained in:
parent
ad12c6cdea
commit
6d7aaaade0
2 changed files with 0 additions and 13 deletions
|
@ -89,18 +89,6 @@ void ImageModel::Redo()
|
||||||
NotifyImageChanged();
|
NotifyImageChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImageModel::ResetToPrevious()
|
|
||||||
{
|
|
||||||
ATLTRACE("%s: %d\n", __FUNCTION__, m_currInd);
|
|
||||||
|
|
||||||
// Revert current item with previous item
|
|
||||||
::DeleteObject(m_hBms[m_currInd]);
|
|
||||||
m_hBms[m_currInd] = CopyDIBImage(m_hBms[(m_currInd + HISTORYSIZE - 1) % HISTORYSIZE]);
|
|
||||||
::SelectObject(m_hDrawingDC, m_hBms[m_currInd]);
|
|
||||||
|
|
||||||
NotifyImageChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ImageModel::ClearHistory()
|
void ImageModel::ClearHistory()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < HISTORYSIZE; ++i)
|
for (int i = 0; i < HISTORYSIZE; ++i)
|
||||||
|
|
|
@ -21,7 +21,6 @@ public:
|
||||||
BOOL CanRedo() const { return m_redoSteps > 0; }
|
BOOL CanRedo() const { return m_redoSteps > 0; }
|
||||||
void PushImageForUndo();
|
void PushImageForUndo();
|
||||||
void PushImageForUndo(HBITMAP hbm);
|
void PushImageForUndo(HBITMAP hbm);
|
||||||
void ResetToPrevious(void);
|
|
||||||
void Undo(BOOL bClearRedo = FALSE);
|
void Undo(BOOL bClearRedo = FALSE);
|
||||||
void Redo(void);
|
void Redo(void);
|
||||||
void ClearHistory(void);
|
void ClearHistory(void);
|
||||||
|
|
Loading…
Reference in a new issue