From d64e99d74ebb08c50c41e805954ab3635c000660 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 12 Jun 2018 20:36:43 +0300 Subject: [PATCH] Last line off by one fix. --- custom.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom.cpp b/custom.cpp index f8213fe9..7a06904f 100644 --- a/custom.cpp +++ b/custom.cpp @@ -8300,7 +8300,7 @@ static bool linesync_beam_single(void) frame_time_t maxtime = read_processor_time() + 2 * vsynctimebase; if (is_last_line()) { - do_render_slice(-1, 0, vpos - 1); + do_render_slice(-1, 0, vpos); while (!currprefs.turbo_emulation && sync_timeout_check(maxtime)) { maybe_process_pull_audio(); target_spin(0); @@ -8365,7 +8365,7 @@ static bool linesync_beam_multi_dual(void) if (display_slice_cnt == 0) { if (!was_syncline) { - do_render_slice(is_last_line() ? 1 : 2, display_slice_cnt, vpos - 1); + do_render_slice(is_last_line() ? 1 : 2, display_slice_cnt, vpos); display_rendered = true; } while (!currprefs.turbo_emulation && sync_timeout_check(maxtime)) { @@ -8467,7 +8467,7 @@ static bool linesync_beam_vrr(void) if (is_last_line()) { if (!was_syncline && !display_rendered) { - do_render_slice(1, display_slice_cnt, vpos - 1); + do_render_slice(1, display_slice_cnt, vpos); display_rendered = true; } @@ -8625,7 +8625,7 @@ static bool linesync_beam_multi_single(void) if (is_last_line()) { if (!was_syncline && !display_rendered) { - do_render_slice(1, display_slice_cnt, vpos - 1); + do_render_slice(1, display_slice_cnt, vpos); display_rendered = true; } // if 2 slices: make sure we are out of vblank. -- 2.47.3