mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VI: Respect DisplayControlRegister ENB bit
When ENB is set to 0 (default), VI should not generate clocks, and so shouldn't generate output.
This commit is contained in:
@ -110,7 +110,7 @@ void Preset(bool _bNTSC)
|
|||||||
m_VerticalTimingRegister.EQU = 6;
|
m_VerticalTimingRegister.EQU = 6;
|
||||||
m_VerticalTimingRegister.ACV = 0;
|
m_VerticalTimingRegister.ACV = 0;
|
||||||
|
|
||||||
m_DisplayControlRegister.ENB = 1;
|
m_DisplayControlRegister.ENB = 0;
|
||||||
m_DisplayControlRegister.FMT = _bNTSC ? 0 : 1;
|
m_DisplayControlRegister.FMT = _bNTSC ? 0 : 1;
|
||||||
|
|
||||||
m_HTiming0.HLW = 429;
|
m_HTiming0.HLW = 429;
|
||||||
@ -605,6 +605,9 @@ static void EndField()
|
|||||||
// Run when: When a frame is scanned (progressive/interlace)
|
// Run when: When a frame is scanned (progressive/interlace)
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
if (!m_DisplayControlRegister.ENB)
|
||||||
|
return;
|
||||||
|
|
||||||
if (s_half_line_count == s_even_field_first_hl)
|
if (s_half_line_count == s_even_field_first_hl)
|
||||||
{
|
{
|
||||||
BeginField(FIELD_EVEN);
|
BeginField(FIELD_EVEN);
|
||||||
|
Reference in New Issue
Block a user