Merge pull request #2943 from booto/vi-enb

VI: Respect DisplayControlRegister ENB bit
This commit is contained in:
Pierre Bourdon 2015-09-04 03:50:39 +02:00
commit 8dd80b8e97
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void Preset(bool _bNTSC)
m_VerticalTimingRegister.EQU = 6;
m_VerticalTimingRegister.ACV = 0;
m_DisplayControlRegister.ENB = 1;
m_DisplayControlRegister.ENB = 0;
m_DisplayControlRegister.FMT = _bNTSC ? 0 : 1;
m_HTiming0.HLW = 429;
@ -605,6 +605,9 @@ static void EndField()
// Run when: When a frame is scanned (progressive/interlace)
void Update()
{
if (!m_DisplayControlRegister.ENB)
return;
if (s_half_line_count == s_even_field_first_hl)
{
BeginField(FIELD_EVEN);