0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-24 14:55:11 +00:00

ppu_write: remove duplicate condition we already checked for

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-02 18:15:11 +01:00
parent 4b5183cf0d
commit ca5675419e
No known key found for this signature in database
GPG key ID: FC8DDA5A6A7456C4

View file

@ -61,7 +61,6 @@ ppu_write(Ppu *p, Uint8 layer, Uint16 x, Uint16 y, Uint8 color)
Uint8 pix = p->pixels[row];
Uint8 mask = ~(0x3 << shift);
Uint8 pixnew = (pix & mask) + (color << shift);
if(x < p->width && y < p->height)
p->pixels[row] = pixnew;
if(pix != pixnew)
p->reqdraw = 1;