From: Toni Wilen Date: Sun, 7 Nov 2021 13:27:23 +0000 (+0200) Subject: Scandoubler fix, attempt 2 X-Git-Tag: 4900~23 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5c1764925116b71186305810576b96848ca13ef1;p=francis%2Fwinuae.git Scandoubler fix, attempt 2 --- diff --git a/custom.cpp b/custom.cpp index b64e471d..f318afa8 100644 --- a/custom.cpp +++ b/custom.cpp @@ -3750,9 +3750,9 @@ static void decide_vline(void) { bool forceoff = (vb_start_line == 1 && !harddis_v); - // we need last line if scandoubler (even if it does not exist in real world) - if (doflickerfix() && interlace_seen > 0 && diwstate == DIW_waiting_stop && vpos + 1 == plflastline) { - forceoff = false; + // if scandoubler mode: stop display before possible last non-paired line + if (doflickerfix() && interlace_seen > 0 && vpos + 1 >= maxvpos && lof_current && diwstate == DIW_waiting_stop) { + forceoff = true; } /* Take care of the vertical DIW. */