From b2bb585e1dd80f5b52e92a205cdde0d06ef4af96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Fri, 24 Dec 2021 23:27:41 +0100 Subject: [PATCH] ppu: clear should only mark one layer as changed --- src/devices/ppu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/ppu.c b/src/devices/ppu.c index 8d90205..6766b84 100644 --- a/src/devices/ppu.c +++ b/src/devices/ppu.c @@ -75,7 +75,7 @@ ppu_clear(Ppu *p, Layer *layer) Uint32 i, size = p->width * p->height; for(i = 0; i < size; ++i) layer->pixels[i] = 0x00; - p->fg.changed = p->bg.changed = 1; + layer->changed = 1; } void