]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fast drawing mode VB fix
authorToni Wilen <twilen@winuae.net>
Fri, 13 Feb 2026 18:34:26 +0000 (20:34 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 13 Feb 2026 18:34:26 +0000 (20:34 +0200)
custom.cpp

index 358118044a5cbe403f8181366820e1606dbc1b00..9fcbc26275467447ec5ac51ed3f632e579109575 100644 (file)
@@ -12361,7 +12361,10 @@ static void do_cck(bool docycles)
                check_bpl_vdiw();
        }
 
-       check_hsyncs();
+       // if returning from fast mode: don't change VB state too early
+       if (custom_fastmode == 0) {
+               check_hsyncs();
+       }
 
        if (agnus_hpos == HARDWIRED_DMA_TRIGGER_HPOS) {
                if (custom_fastmode < 0) {
@@ -12463,9 +12466,8 @@ static void sync_equalline_handler(void)
 
        custom_trigger_start();
 
-       check_vsyncs_fast();
-
        if (eventtab[ev_sync].active) {
+               check_vsyncs_fast();
                check_bpl_vdiw();
                do_imm_dmal();
        } else {