[nostalgia/core] Fix TileSheet::SubSheet::setPixelCount
This commit is contained in:
parent
b225d976f5
commit
94653cb9af
@ -217,7 +217,7 @@ struct TileSheet {
|
||||
constexpr auto setPixelCount(int8_t bpp, std::size_t cnt) noexcept {
|
||||
switch (bpp) {
|
||||
case 4:
|
||||
pixels.resize(cnt * 2);
|
||||
pixels.resize(cnt / 2);
|
||||
return OxError(0);
|
||||
case 8:
|
||||
pixels.resize(cnt);
|
||||
|
Loading…
Reference in New Issue
Block a user