[nostalgia/core/studio] Fix subsheet editor to allocate correct number of pixels

This commit is contained in:
2022-03-05 15:51:39 -06:00
parent 2f7c62f2ef
commit 20a61de9fd
7 changed files with 33 additions and 19 deletions
@@ -206,7 +206,7 @@ struct UpdateSubSheetCommand: public studio::UndoCommand {
sheet.name = m_newName;
sheet.columns = m_newCols;
sheet.rows = m_newRows;
sheet.pixels.resize(static_cast<std::size_t>(m_newCols * m_newRows * PixelsPerTile));
oxLogError(sheet.setPixelCount(m_img->bpp, static_cast<std::size_t>(m_newCols * m_newRows)));
}
void undo() noexcept final {