uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit ca5675419efd9d8ee98d54c0e211e5cde64eeea0
parent 4b5183cf0de2b2422ed9d110a316455a3f115163
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Tue,  2 Nov 2021 18:15:11 +0100

ppu_write: remove duplicate condition we already checked for

Diffstat:
Msrc/devices/ppu.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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; }