From aa4abfc9778ee77d586faf66439f4b23276aaddf Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 1 Jan 2020 00:25:48 -0500 Subject: [PATCH] - added pixel ratio detection to supersampling detection for forcing linear scaling - this should likely make it so if there's ever an instance where a viewport pixel is smaller than a screen pixel, the screen should go to linear scaling now --- src/rendering/r_videoscale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/r_videoscale.cpp b/src/rendering/r_videoscale.cpp index c3da10438..ac73212e9 100644 --- a/src/rendering/r_videoscale.cpp +++ b/src/rendering/r_videoscale.cpp @@ -168,7 +168,7 @@ bool ViewportLinearScale() vid_scalemode = 0; // always use linear if supersampling int x = screen->GetClientWidth(), y = screen->GetClientHeight(); - if (ViewportScaledWidth(x,y) > x || ViewportScaledHeight(x,y) > y) + if ((ViewportScaledWidth(x,y) > (x / ViewportPixelAspect())) || (ViewportScaledHeight(x,y) > (y * ViewportPixelAspect()))) return true; return vid_scale_linear;