]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix integer scale shres aspect ratio correction
authorToni Wilen <twilen@winuae.net>
Wed, 2 Apr 2025 17:07:41 +0000 (20:07 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 2 Apr 2025 17:07:41 +0000 (20:07 +0300)
od-win32/win32_scaler.cpp

index 4e6d13544a9f88645de5f4f827cd009a1f1210d1..a5f2cd2a8f92034dd76f7a83b0e1efd22325cd1f 100644 (file)
@@ -412,8 +412,8 @@ void getfilterdata(int monid, struct displayscale *ds)
                                                if (ch2 * (mult * 2) - adjh <= maxh && cw2 > ch2 * 2.4) {
                                                        multy *= 2;
                                                }
-                                               maxw = (int)((maxw + mult - multadd) / mult);
-                                               maxh = (int)((maxh + mult - multadd) / mult);
+                                               maxw = (int)((maxw + mult - multadd) / multx);
+                                               maxh = (int)((maxh + mult - multadd) / multy);
                                        }
                                }