]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Scandoubler fix, attempt 2
authorToni Wilen <twilen@winuae.net>
Sun, 7 Nov 2021 13:27:23 +0000 (15:27 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Nov 2021 13:27:23 +0000 (15:27 +0200)
custom.cpp

index b64e471db3c237d4af4a2528933b55113a5687e7..f318afa80934497af5db54892c75961b12758226 100644 (file)
@@ -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.  */