]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix vertical blank state at startup
authorToni Wilen <twilen@winuae.net>
Sun, 7 Aug 2022 17:40:36 +0000 (20:40 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Aug 2022 17:40:36 +0000 (20:40 +0300)
custom.cpp

index 40a7609e653f1ba6cbd1a965b5e6582194c8874f..e9ef37f12f5b57f8ab0efda5a18860f9d9509bd0 100644 (file)
@@ -13084,15 +13084,16 @@ void custom_reset(bool hardreset, bool keyboardreset)
        lightpen_y[1] = -1;
        nr_armed = 0;
        next_lineno = 0;
-       vb_start_line = 0;
+       vb_start_line = 1;
+       if (currprefs.cs_dipagnus) {
+               vb_start_line = 0;
+       }
+       vb_state = true;
        vs_state = false;
        vs_state_hw = false;
        vs_state_on = false;
        dmal_htotal_mask = 0xffff;
        memset(custom_storage, 0, sizeof(custom_storage));
-       if (!currprefs.cs_dipagnus) {
-               vb_start_line = 1;
-       }
        toscr_res_old = -1;
        toscr_nbits = 0;
        update_denise_vars();