GPU2D: forced-blank only disables BG/OBJ compositing (VRAM/FIFO display, capture, master brightness still run)

fixes #491
This commit is contained in:
Arisotura 2019-07-24 00:27:08 +02:00
parent 22f3cae067
commit c1fa5d8283
1 changed files with 9 additions and 4 deletions

View File

@ -709,10 +709,6 @@ void GPU2D::DrawScanline(u32 line)
// oddly that's not the case for GPU A
if (Num && !Enabled) forceblank = true;
// forced blank
// (checkme: are there still things that can run under this mode? likely not)
if (DispCnt & (1<<7)) forceblank = true;
if (forceblank)
{
for (int i = 0; i < 256; i++)
@ -1350,6 +1346,15 @@ void GPU2D::DrawScanlineBGMode6(u32 line)
void GPU2D::DrawScanline_BGOBJ(u32 line)
{
// forced blank disables BG/OBJ compositing
if (DispCnt & (1<<7))
{
for (int i = 0; i < 256; i++)
BGOBJLine[i] = 0xFF3F3F3F;
return;
}
u64 backdrop;
if (Num) backdrop = *(u16*)&GPU::Palette[0x400];
else backdrop = *(u16*)&GPU::Palette[0];