Fit hud scaling to 16:9 minimum. Ultrawide be damned.

This commit is contained in:
Mari the Deer 2022-05-08 18:43:42 +02:00
commit 473e7ad5e8
9 changed files with 9 additions and 35 deletions

View file

@ -134,7 +134,7 @@ Class SWWMCreditsMenu : GenericMenu
void UpdateSize()
{
hs = max(1.,min(floor(Screen.GetWidth()/640),floor(Screen.GetHeight()/266)));
hs = max(min(floor(Screen.GetWidth()/640.),floor(Screen.GetHeight()/360.)),1.);
ss = (Screen.GetWidth(),Screen.GetHeight())/hs;
}