GPU: Claer interlaced field buffer when enabling

Fixes old frames getting briefly displayed.
This commit is contained in:
Connor McLaughlin
2020-08-03 03:26:11 +10:00
parent 23df239469
commit 818892cb1b
10 changed files with 51 additions and 0 deletions

View File

@ -974,6 +974,12 @@ void GPU::WriteGP1(u32 value)
new_GPUSTAT.reverse_flag = dm.reverse_flag;
Log_DebugPrintf("Set display mode <- 0x%08X", dm.bits);
if (!m_GPUSTAT.vertical_interlace && dm.vertical_interlace && !m_force_progressive_scan)
{
// bit of a hack, technically we should pull the previous frame in, but this may not exist anymore
ClearDisplay();
}
if (m_GPUSTAT.bits != new_GPUSTAT.bits)
{
// Have to be careful when setting this because Synchronize() can modify GPUSTAT.
@ -1069,6 +1075,8 @@ void GPU::HandleGetGPUInfoCommand(u32 value)
}
}
void GPU::ClearDisplay() {}
void GPU::UpdateDisplay() {}
void GPU::ReadVRAM(u32 x, u32 y, u32 width, u32 height) {}