| ... | ... |
@@ -61,8 +61,7 @@ ppu_write(Ppu *p, Uint8 layer, Uint16 x, Uint16 y, Uint8 color) |
| 61 | 61 |
Uint8 pix = p->pixels[row]; |
| 62 | 62 |
Uint8 mask = ~(0x3 << shift); |
| 63 | 63 |
Uint8 pixnew = (pix & mask) + (color << shift); |
| 64 |
- if(x < p->width && y < p->height) |
|
| 65 |
- p->pixels[row] = pixnew; |
|
| 64 |
+ p->pixels[row] = pixnew; |
|
| 66 | 65 |
if(pix != pixnew) |
| 67 | 66 |
p->reqdraw = 1; |
| 68 | 67 |
} |