diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-11-24 21:10:26 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-11-24 21:10:26 +0100 |
commit | 3f8befaf4ef68375007dafba0e0859423d19c7ef (patch) | |
tree | 7b3bc123d2e754437d83b74d4239418e9a88e9d1 /src | |
parent | 46d5a31275f65ffe2d675ebde0760f964f62b30c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/GPU2D.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |