mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- amend last commit: do it the other direction, too
This commit is contained in:
parent
e87ed35565
commit
5ae0ae885d
1 changed files with 4 additions and 1 deletions
|
@ -168,7 +168,10 @@ bool ViewportLinearScale()
|
||||||
vid_scalemode = 0;
|
vid_scalemode = 0;
|
||||||
// always use linear if supersampling
|
// always use linear if supersampling
|
||||||
int x = screen->GetClientWidth(), y = screen->GetClientHeight();
|
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 true;
|
||||||
|
|
||||||
return vid_scale_linear;
|
return vid_scale_linear;
|
||||||
|
|
Loading…
Reference in a new issue