Skip to content

Commit

Permalink
- amend last commit: do it the other direction, too
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jan 1, 2020
1 parent e87ed35 commit 5ae0ae8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rendering/r_videoscale.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 5ae0ae8

Please sign in to comment.