GPU: Correct value of ODE bit in vblank

Fixes line streaks in Dead or Alive.
This commit is contained in:
Connor McLaughlin 2021-04-15 01:32:05 +10:00
parent 3303523463
commit 88618bde1c
1 changed files with 1 additions and 1 deletions

View File

@ -899,7 +899,7 @@ void GPU::CRTCTickEvent(TickCount ticks)
m_crtc_state.active_line_lsb =
Truncate8((m_crtc_state.regs.Y + BoolToUInt32(m_crtc_state.interlaced_display_field)) & u32(1));
m_GPUSTAT.display_line_lsb = ConvertToBoolUnchecked(
(m_crtc_state.regs.Y + (BoolToUInt8(m_crtc_state.in_vblank) ^ m_crtc_state.interlaced_display_field)) & u32(1));
(m_crtc_state.regs.Y + (BoolToUInt8(!m_crtc_state.in_vblank) & m_crtc_state.interlaced_display_field)) & u32(1));
}
else
{