]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix autoscale vertical start detection if start position was early and vertical size...
authorToni Wilen <twilen@winuae.net>
Sun, 18 Feb 2018 12:23:41 +0000 (14:23 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 18 Feb 2018 12:23:41 +0000 (14:23 +0200)
custom.cpp

index 949e807b8ca8e6e4802bd837dd2ca48fff4a3c68..bcad358c0611cf2e51a914962e43c8f65fd8a28b 100644 (file)
@@ -8694,7 +8694,7 @@ static void hsync_handler_post (bool onvsync)
                        if (plfstop + 2 * f > ddflastword_total + 2 * f)
                                ddflastword_total = plfstop + 2 * f;
                }
-               if ((plffirstline < plffirstline_total || (plffirstline_total == minfirstline && vpos > minfirstline)) && plffirstline < vpos / 2) {
+               if ((plffirstline < plffirstline_total || (plffirstline_total == minfirstline && vpos > minfirstline)) && plffirstline < maxvpos / 2) {
                        firstword_bplcon1 = bplcon1;
                        if (plffirstline < minfirstline)
                                plffirstline_total = minfirstline;