]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not enable filter detected borders in autoscale center mode.
authorToni Wilen <twilen@winuae.net>
Sun, 19 Apr 2020 14:53:32 +0000 (17:53 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 19 Apr 2020 14:53:32 +0000 (17:53 +0300)
od-win32/win32_scaler.cpp

index f91c58036dd72107b0e9d89dc6ea2b984a087395..b1ada28e9606c996def83650ad6eee993ad7658b 100644 (file)
@@ -458,7 +458,14 @@ void getfilterrect2(int monid, RECT *sr, RECT *dr, RECT *zr, int dst_width, int
 
                        cv = 1;
 
-               } else if (scalemode == AUTOSCALE_CENTER || scalemode == AUTOSCALE_RESIZE) {
+               } else if (scalemode == AUTOSCALE_CENTER) {
+
+                       cv = get_custom_limits(&cw, &ch, &cx, &cy, &crealh);
+                       if (cv) {
+                               store_custom_limits(cw, ch, cx, cy);
+                       }
+
+               } else if (scalemode == AUTOSCALE_RESIZE) {
 
                        cv = get_custom_limits (&cw, &ch, &cx, &cy, &crealh);
                        if (cv) {