From 3f8befaf4ef68375007dafba0e0859423d19c7ef Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sat, 24 Nov 2018 21:10:26 +0100 Subject: add support for forced-blank. fixing spurious colors during screen transitions in Picross 3D. I thought I had already fixed that, but it was stuck in the long-dead jit branch, so, here it is, back from the dead. --- src/GPU2D.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp index 078374b..8a2eb19 100644 --- a/src/GPU2D.cpp +++ b/src/GPU2D.cpp @@ -538,6 +538,15 @@ void GPU2D::DrawScanline(u32 line) return; } + // forced blank + // (checkme: are there still things that can run under this mode? likely not) + if (DispCnt & (1<<7)) + { + for (int i = 0; i < 256; i++) + dst[i] = 0xFFFFFFFF; + return; + } + u32 dispmode = DispCnt >> 16; dispmode &= (Num ? 0x1 : 0x3); -- cgit v1.2.3