From 5c1764925116b71186305810576b96848ca13ef1 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 7 Nov 2021 15:27:23 +0200 Subject: [PATCH] Scandoubler fix, attempt 2 --- custom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. */ -- 2.47.3