Skip to content

Commit

Permalink
sms, minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed May 18, 2024
1 parent 4167049 commit 2531b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pico/mode4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit 2531b6f

Please sign in to comment.