add clamp to aspect ratio

This commit is contained in:
NotAKidoS 2023-01-03 12:44:56 -06:00
parent 8ef891434a
commit 81affe9377
2 changed files with 2 additions and 10 deletions

View file

@ -55,7 +55,8 @@ internal class HarmonyPatches
{
//this is called once a second, so ill fix their dumb aspect ratio shit
float ratio = (float)Screen.width / (float)Screen.height;
MSP_MenuInfo.AspectRatio = 1.7777779f / ratio;
float clamp = Mathf.Clamp(ratio, 0f, 1.8f);
MSP_MenuInfo.AspectRatio = 1.7777779f / clamp;
__runOriginal = false;
}