fix(ppu): draw file select sprites in amazing mirror

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-01-08 01:36:58 -06:00
parent ddc54e2977
commit ae3bb94036
1 changed files with 6 additions and 1 deletions

View File

@ -843,7 +843,12 @@ pub const Ppu = struct {
const is_top_layer = (top_layer >> layer) & 1 == 1;
if (is_top_layer) {
self.scanline.btm()[i] = Scanline.Pixel.from(.Background, bgr555); // this is intentional
const pixel = self.scanline.btm()[i];
// FIXME: Can't I do this check ealier? Test Amazing Mirror File Select, bld_demo.gba
if (!pixel.isSet())
self.scanline.btm()[i] = Scanline.Pixel.from(.Background, bgr555); // this is intentional
return;
}
},