From a658d7435eb57d39341e8be92dd41d1832082422 Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 17 May 2021 21:43:48 -0500 Subject: x68k_crtc: make raster callbacks partial update until the last line rather than the current one --- src/mame/video/x68k_crtc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/video/x68k_crtc.cpp b/src/mame/video/x68k_crtc.cpp index 28bd5f13389..685f9b141e4 100644 --- a/src/mame/video/x68k_crtc.cpp +++ b/src/mame/video/x68k_crtc.cpp @@ -231,7 +231,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::hsync) hsync_time = screen().time_until_pos(scan, (m_htotal + m_hend) / 2); m_scanline_timer->adjust(hsync_time); if ((scan != 0) && (scan < m_vend)) - screen().update_partial(scan); + screen().update_partial(scan - 1); } else { @@ -239,7 +239,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::hsync) hsync_time = screen().time_until_pos(scan, m_hend / 2); m_scanline_timer->adjust(hsync_time); if ((scan != 0) && (scan < m_vend)) - screen().update_partial(scan); + screen().update_partial(scan - 1); } } if (hstate == 0) @@ -267,7 +267,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::hsync) hsync_time = screen().time_until_pos(scan, m_hend); m_scanline_timer->adjust(hsync_time); if ((scan != 0) && (scan < m_vend)) - screen().update_partial(scan); + screen().update_partial(scan - 1); } if (hstate == 0) { @@ -291,7 +291,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::raster_irq) if (scan <= m_vtotal) { m_rint_callback(0); - screen().update_partial(scan); + screen().update_partial(scan - 1); irq_time = screen().time_until_pos(scan, m_hbegin); // end of HBlank period clears GPIP6 also? end_time = screen().time_until_pos(scan, m_hend); -- cgit v1.2.3