From 77e654d41584a3fdc3665f868f436ad0556ede32 Mon Sep 17 00:00:00 2001 From: Kyuchumimo <74131798+Kyuchumimo@users.noreply.github.com> Date: Sun, 24 Dec 2023 17:15:47 -0700 Subject: [PATCH] PR: Fix identical instruction for conditional sprite_size_sel @ function vdp_sprite_init Fixes name attribution for size 0 sprites (8x8 sprites) @ function vdp_sprite_init --- src/tms9918.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tms9918.cpp b/src/tms9918.cpp index b1ac094..0144a39 100644 --- a/src/tms9918.cpp +++ b/src/tms9918.cpp @@ -419,7 +419,7 @@ uint16_t vdp_sprite_init(uint8_t name, uint8_t priority, uint8_t color) if(sprite_size_sel) writeByteToVRAM(4*name); else - writeByteToVRAM(4*name); + writeByteToVRAM(name); writeByteToVRAM(0x80 | (color & 0xF)); return addr; } @@ -588,4 +588,4 @@ int vdp_init_g2(bool big_sprites, bool scale_sprites) int vdp_init_multicolor() { return vdp_init(VDP_MODE_MULTICOLOR, 0, 0, 0); -} \ No newline at end of file +}