From bce8a2faa9f3d2476d29c6e3a403b4539114e05f Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 7 Aug 2022 20:40:36 +0300 Subject: [PATCH] Fix vertical blank state at startup --- custom.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); -- 2.47.3