- 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

This commit is contained in:
Rachael Alexanderson 2020-01-01 00:25:48 -05:00
parent 0d60a0f4ea
commit aa4abfc977

View file

@ -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;