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 {