]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Last line off by one fix.
authorToni Wilen <twilen@winuae.net>
Tue, 12 Jun 2018 17:36:43 +0000 (20:36 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 12 Jun 2018 17:36:43 +0000 (20:36 +0300)
custom.cpp

index f8213fe913eb028d46c4e6661480fd226459de62..7a06904fd4010056b670c43d5b76dbd881b2a692 100644 (file)
@@ -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.