1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Add a maximum size to ensure things don't get out of hand

This commit is contained in:
Dean Herbert 2020-02-21 16:11:09 +09:00
parent b94f937f7e
commit dacbbb5eee

View File

@ -62,7 +62,7 @@ namespace osu.Game.Graphics.UserInterface
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();
MainContents.Size = new Vector2(Math.Min(DrawWidth, DrawHeight) * 0.25f); MainContents.Size = new Vector2(Math.Min(100, Math.Min(DrawWidth, DrawHeight) * 0.25f));
} }
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)