mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Add a maximum size to ensure things don't get out of hand
This commit is contained in:
parent
b94f937f7e
commit
dacbbb5eee
@ -62,7 +62,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
protected override void 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)
|
||||
|
Loading…
Reference in New Issue
Block a user