mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
GPU: Clear display when disabling DAC and interlaced
Fixes old output showing up briefly when it's re-enabled.
This commit is contained in:
parent
9da35be0a8
commit
699d599d00
|
@ -1041,6 +1041,10 @@ void GPU::WriteGP1(u32 value)
|
|||
const bool disable = ConvertToBoolUnchecked(value & 0x01);
|
||||
Log_DebugPrintf("Display %s", disable ? "disabled" : "enabled");
|
||||
SynchronizeCRTC();
|
||||
|
||||
if (!m_GPUSTAT.display_disable && disable && m_GPUSTAT.vertical_interlace && !m_force_progressive_scan)
|
||||
ClearDisplay();
|
||||
|
||||
m_GPUSTAT.display_disable = disable;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue