diff options
author | neonloop | 2022-02-09 07:20:17 +0000 |
---|---|---|
committer | neonloop | 2022-02-09 07:20:17 +0000 |
commit | 479872a8d30b092671ed49868748e48830bc36da (patch) | |
tree | e80b622d8fd4b0d30f0a265d8c57ffb9ae738cc4 /source/gfx.c | |
parent | 874c431fdaff24413886416ed3ffa3455681ac01 (diff) | |
download | snes9x2005-479872a8d30b092671ed49868748e48830bc36da.tar.gz snes9x2005-479872a8d30b092671ed49868748e48830bc36da.tar.bz2 snes9x2005-479872a8d30b092671ed49868748e48830bc36da.zip |
Adds few assembly gfx functions from snes9x2002asmgfx
Diffstat (limited to 'source/gfx.c')
-rw-r--r-- | source/gfx.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |