From 88618bde1c7164ab146d906e6b623aa49855ea98 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 15 Apr 2021 01:32:05 +1000 Subject: [PATCH] GPU: Correct value of ODE bit in vblank Fixes line streaks in Dead or Alive. --- src/core/gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index f1e85083b..ed086e83e 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -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 {