[nostalgia/core/studio] Get Undo/Redo working

This commit is contained in:
2022-02-16 20:17:33 -06:00
parent c92ecdf499
commit 302dd23a36
6 changed files with 39 additions and 14 deletions
@@ -29,7 +29,7 @@ void TileSheetEditorModel::drawCommand(const geo::Point &pt, std::size_t palIdx)
} else {
const auto idx = ptToIdx(pt, m_img.columns);
if (m_img.getPixel(idx) != palIdx) {
pushCommand(new DrawCommand(&m_img, idx, palIdx));
pushCommand(new DrawCommand(&m_updated, &m_img, idx, palIdx));
}
}
}