From 94653cb9af4d77e40fa87252789adc1cd513571e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 5 Mar 2022 18:27:45 -0600 Subject: [PATCH] [nostalgia/core] Fix TileSheet::SubSheet::setPixelCount --- src/nostalgia/core/gfx.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/core/gfx.hpp b/src/nostalgia/core/gfx.hpp index 3c62092c..42dad3dd 100644 --- a/src/nostalgia/core/gfx.hpp +++ b/src/nostalgia/core/gfx.hpp @@ -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);