[nostalgia/core/studio] Fix subsheet editor to allocate correct number of pixels
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user