- amend last commit: do it the other direction, too

This commit is contained in:
Rachael Alexanderson 2020-01-01 01:28:42 -05:00
parent e87ed35565
commit 5ae0ae885d
1 changed files with 4 additions and 1 deletions

View File

@ -168,7 +168,10 @@ bool ViewportLinearScale()
vid_scalemode = 0;
// always use linear if supersampling
int x = screen->GetClientWidth(), y = screen->GetClientHeight();
if ((ViewportScaledWidth(x,y) > (x / ViewportPixelAspect())) || (ViewportScaledHeight(x,y) > (y * ViewportPixelAspect())))
float aspectmult = ViewportPixelAspect();
if (aspectmult > 1.f)
aspectmult = 1.f / aspectmult;
if ((ViewportScaledWidth(x,y) > (x * aspectmult)) || (ViewportScaledHeight(x,y) > (y * aspectmult)))
return true;
return vid_scale_linear;