From: Toni Wilen Date: Wed, 2 Apr 2025 17:07:41 +0000 (+0300) Subject: Fix integer scale shres aspect ratio correction X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=0aa5907ca7bfa1926f27c19e23dbb696af72d973;p=francis%2Fwinuae.git Fix integer scale shres aspect ratio correction --- diff --git a/od-win32/win32_scaler.cpp b/od-win32/win32_scaler.cpp index 4e6d1354..a5f2cd2a 100644 --- a/od-win32/win32_scaler.cpp +++ b/od-win32/win32_scaler.cpp @@ -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); } }