Compare commits

..

4 Commits

4 changed files with 9 additions and 4 deletions

@ -1 +1 @@
Subproject commit 2fbd4b228516bf08348a3173f1446c7e8d75540a Subproject commit 2025889b612f345698feff44fc245501bff637e9

@ -1 +1 @@
Subproject commit 24845b0103e611c108d6bc334231c464e699742c Subproject commit 6b37490ac7285133bf09441850b8102c9728a776

@ -1 +1 @@
Subproject commit 88edafd00ec25dcc01deb8fc69e9864a16f8717c Subproject commit 6c9ca9025199b145c42a75d10cadb3f97879ee6d

View File

@ -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;
} }
}, },