Browse code

ppu: clear should only mark one layer as changed

Sigrid Solveig Haflínudóttir authored on 24/12/2021 22:27:41
Showing 1 changed files
... ...
@@ -75,7 +75,7 @@ ppu_clear(Ppu *p, Layer *layer)
75 75
 	Uint32 i, size = p->width * p->height;
76 76
 	for(i = 0; i < size; ++i)
77 77
 		layer->pixels[i] = 0x00;
78
-	p->fg.changed = p->bg.changed = 1;
78
+	layer->changed = 1;
79 79
 }
80 80
 
81 81
 void