mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00: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:
parent
3b65c4070c
commit
28d788ba2c
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue