]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Include also HCENTER in fast vsync checks.
authorToni Wilen <twilen@winuae.net>
Sat, 14 Feb 2026 13:41:13 +0000 (15:41 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 14 Feb 2026 13:41:13 +0000 (15:41 +0200)
custom.cpp

index 9fcbc26275467447ec5ac51ed3f632e579109575..4e0ccaeea9270cd116929d77272d6a75b7e3fcdd 100644 (file)
@@ -10439,6 +10439,12 @@ static void check_vsyncs_fast(void)
                lof_detect = 1;
                update_lof_detect();
        }
+       // VSYNC (HCENTER)
+       if (vpos == 3 && !lof_store) {
+               agnus_vsync = true;
+               lof_detect = 0;
+               update_lof_detect();
+       }
        if (vpos == 5 && !lof_store) {
                agnus_vsync = false;
        }
@@ -10447,7 +10453,7 @@ static void check_vsyncs_fast(void)
                lof_detect = 0;
                update_lof_detect();
        }
-       if (vpos == 5 && lof_store) {
+       if (vpos == 5) {
                agnus_vsync = false;
        }