From 2531b6fd16543cfa3afc6528c949c6a05787542b Mon Sep 17 00:00:00 2001 From: kub Date: Sat, 18 May 2024 21:59:18 +0200 Subject: [PATCH] sms, minor optimization --- pico/mode4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pico/mode4.c b/pico/mode4.c index b396af66..eada9741 100644 --- a/pico/mode4.c +++ b/pico/mode4.c @@ -174,7 +174,7 @@ static void ParseSpritesM4(int scanline) if (zoomed) h *= 2; sprite_base = (pv->reg[6] & 4) << (13-2-1); - m = 0; + m = pv->status & SR_C; memset(sprites_map, 0, sizeof(sprites_map)); for (i = s = 0; i < 64; i++) { @@ -448,7 +448,7 @@ static void ParseSpritesTMS(int scanline) if (zoomed) h *= 2; sprite_base = (pv->reg[6] & 0x7) << 11; - m = 0; + m = pv->status & SR_C; memset(sprites_map, 0, sizeof(sprites_map)); /* find sprites on this scanline */ for (i = s = 0; i < 32; i++) -- 2.39.5