[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 {
|
constexpr auto setPixelCount(int8_t bpp, std::size_t cnt) noexcept {
|
||||||
switch (bpp) {
|
switch (bpp) {
|
||||||
case 4:
|
case 4:
|
||||||
pixels.resize(cnt * 2);
|
pixels.resize(cnt / 2);
|
||||||
return OxError(0);
|
return OxError(0);
|
||||||
case 8:
|
case 8:
|
||||||
pixels.resize(cnt);
|
pixels.resize(cnt);
|
||||||
|
Loading…
Reference in New Issue
Block a user