diff --git a/src/nostalgia/core/userland/gfx.cpp b/src/nostalgia/core/userland/gfx.cpp index e33d5a19..759f4c7c 100644 --- a/src/nostalgia/core/userland/gfx.cpp +++ b/src/nostalgia/core/userland/gfx.cpp @@ -24,7 +24,7 @@ struct TileSheetData { }; ox::Result loadTileSheet(Context *ctx, const CompactTileSheet &tilesheet) noexcept { - const unsigned bytesPerTile = tilesheet.bpp == 8 ? 64 : 32; + const unsigned bytesPerTile = tilesheet.bpp == 8 ? PixelsPerTile : PixelsPerTile / 2; const auto tiles = tilesheet.pixels.size() / bytesPerTile; constexpr int width = 8; const int height = 8 * static_cast(tiles);