]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Check vsync check 1 line later
authorToni Wilen <twilen@winuae.net>
Fri, 13 Mar 2026 20:17:57 +0000 (22:17 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 13 Mar 2026 20:17:57 +0000 (22:17 +0200)
custom.cpp

index 1df9651ae2888e0a90f6e51335c8f0db48ff7ba2..8eb6ec99a23d924ebe0ddf34e9335bbea583d40f 100644 (file)
@@ -6671,6 +6671,8 @@ static void hsync_handler(bool vs)
                        }
                }
                reset_autoscale();
+               virtual_vsync_check();
+               last_vsync_evt = get_cycles() + (maxvpos * maxhpos * 3) * CYCLE_UNIT;
                display_vsync_counter++;
                maxvpos_display_vsync_next = true;
                display_hsync_counter = 0;
@@ -11258,13 +11260,6 @@ static void custom_trigger_start(void)
                check_vsyncs_fast();
        }
 
-       if (vpos == vsync_startline) {
-
-               virtual_vsync_check();
-
-               last_vsync_evt = get_cycles() + (maxvpos * maxhpos * 3) * CYCLE_UNIT;
-       }
-
 #if 0
        if (1 && !can_fast_custom() && custom_fastmode) {
                custom_fastmode = 0;