mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
add clamp to aspect ratio
This commit is contained in:
parent
8ef891434a
commit
81affe9377
2 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue