]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Autoscale top/bottom off by one fix.
authorToni Wilen <twilen@winuae.net>
Sun, 14 May 2023 17:32:54 +0000 (20:32 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 14 May 2023 17:32:54 +0000 (20:32 +0300)
custom.cpp
drawing.cpp

index daecaa9a3094d99dc97980ff6dac59505db4abae..fb5a389c6ef1f1ee1359a1142c0f61ad6a806cf4 100644 (file)
@@ -12585,7 +12585,7 @@ static void hautoscale_check(void)
                        last_planes_vpos = vpos;
                }
                if (vpos >= minfirstline && first_planes_vpos == 0) {
-                       first_planes_vpos = vpos > minfirstline ? vpos - 1 : vpos;
+                       first_planes_vpos = vpos;
                } else if (vpos >= current_maxvpos() - 1) {
                        last_planes_vpos = current_maxvpos();
                }
index e3968aa9eec27121fa8cf4905fea14ff2fde146c..007fcc895b37b5f38b835a665967ddcb93d49ce8 100644 (file)
@@ -906,7 +906,7 @@ int get_custom_limits (int *pw, int *ph, int *pdx, int *pdy, int *prealh)
                dbl2--;
        }
 
-       h = y2 - y1;
+       h = y2 - y1 + 1;
        dy = y1 - minfirstline;
 
        if (first_planes_vpos == 0) {