From 479872a8d30b092671ed49868748e48830bc36da Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 9 Feb 2022 07:20:17 +0000 Subject: Adds few assembly gfx functions from snes9x2002 --- source/gfx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/gfx.c') diff --git a/source/gfx.c b/source/gfx.c index 5eac5b9..dbde167 100644 --- a/source/gfx.c +++ b/source/gfx.c @@ -787,6 +787,9 @@ static void DrawOBJS(bool OnMain, uint8_t D) int32_t clipcount; uint32_t Y, Offset; BG.BitShift = 4; +#ifdef ARM_ASM + SelectConvertTile(); +#endif BG.TileShift = 5; BG.TileAddress = PPU.OBJNameBase; BG.StartPalette = 128; @@ -1716,6 +1719,9 @@ static void DrawBackground(uint32_t BGMode, uint32_t bg, uint8_t Z1, uint8_t Z2) BG.TileSize = BGSizes [PPU.BG[bg].BGSize]; BG.BitShift = BitShifts[BGMode][bg]; +#ifdef ARM_ASM + SelectConvertTile(); +#endif BG.TileShift = TileShifts[BGMode][bg]; BG.TileAddress = PPU.BG[bg].NameBase << 1; BG.NameSelect = 0; -- cgit v1.2.3