- allow custom pixel ratio scaling

This commit is contained in:
Rachael Alexanderson 2019-12-31 09:41:42 -05:00
commit 5d2d187b84
5 changed files with 25 additions and 45 deletions

View file

@ -668,10 +668,6 @@ int ActiveFakeRatio(int width, int height)
fakeratio = 3;
}
}
else if (vid_aspect == 0 && ViewportIsScaled43())
{
fakeratio = 0;
}
return fakeratio;
}
@ -694,7 +690,7 @@ float ActiveRatio(int width, int height, float *trueratio)
if (trueratio)
*trueratio = ratio;
return (fakeratio != -1) ? forcedRatioTypes[fakeratio] : ratio;
return (fakeratio != -1) ? forcedRatioTypes[fakeratio] : (ratio / ViewportPixelAspect());
}
DEFINE_ACTION_FUNCTION(_Screen, GetAspectRatio)