ppu: clear should only mark one layer as changed

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-24 23:27:41 +01:00
parent db957f4dbb
commit b2bb585e1d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ ppu_clear(Ppu *p, Layer *layer)
Uint32 i, size = p->width * p->height; Uint32 i, size = p->width * p->height;
for(i = 0; i < size; ++i) for(i = 0; i < size; ++i)
layer->pixels[i] = 0x00; layer->pixels[i] = 0x00;
p->fg.changed = p->bg.changed = 1; layer->changed = 1;
} }
void void