uxn

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

commit b2bb585e1dd80f5b52e92a205cdde0d06ef4af96
parent db957f4dbb48bda8a090f29f7fb34d336afd4bed
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Fri, 24 Dec 2021 23:27:41 +0100

ppu: clear should only mark one layer as changed

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

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