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:
parent
b94f937f7e
commit
dacbbb5eee
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user