mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
0d60a0f4ea
commit
aa4abfc977
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue