From: kub Date: Sat, 18 May 2024 19:59:18 +0000 (+0200) Subject: sms, minor optimization X-Git-Tag: v2.00~55 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2531b6fd16543cfa3afc6528c949c6a05787542b;p=picodrive.git sms, minor optimization --- 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++)