fix(ppu): draw file select sprites in amazing mirror
This commit is contained in:
parent
ddc54e2977
commit
ae3bb94036
|
@ -843,7 +843,12 @@ pub const Ppu = struct {
|
||||||
const is_top_layer = (top_layer >> layer) & 1 == 1;
|
const is_top_layer = (top_layer >> layer) & 1 == 1;
|
||||||
|
|
||||||
if (is_top_layer) {
|
if (is_top_layer) {
|
||||||
|
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
|
self.scanline.btm()[i] = Scanline.Pixel.from(.Background, bgr555); // this is intentional
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue