From: Toni Wilen Date: Sun, 7 Aug 2022 17:40:36 +0000 (+0300) Subject: Fix vertical blank state at startup X-Git-Tag: 41000~174 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=bce8a2faa9f3d2476d29c6e3a403b4539114e05f;p=francis%2Fwinuae.git Fix vertical blank state at startup --- diff --git a/custom.cpp b/custom.cpp index 40a7609e..e9ef37f1 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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();