diff --git a/src/devices/ppu.c b/src/devices/ppu.c index 24a1a55..20c4abe 100644 --- a/src/devices/ppu.c +++ b/src/devices/ppu.c @@ -61,8 +61,7 @@ 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; + p->pixels[row] = pixnew; if(pix != pixnew) p->reqdraw = 1; }