clang-format

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-03 23:05:47 +01:00
parent 5a20eb69b0
commit e21a0ed885
No known key found for this signature in database
GPG Key ID: FC8DDA5A6A7456C4
1 changed files with 1 additions and 1 deletions

View File

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