mirror of
https://github.com/ppy/osu
synced 2025-02-05 12:52:04 +00:00
Allow aspect ratios smaller than the default in taiko
This commit is contained in:
parent
5e8ca11ded
commit
9021cf7be6
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
|
||||
float height = default_relative_height;
|
||||
|
||||
if (LockPlayfieldAspect.Value)
|
||||
if (LockPlayfieldAspect.Value && Parent.ChildSize.X / Parent.ChildSize.Y > default_aspect)
|
||||
height *= Math.Clamp(Parent.ChildSize.X / Parent.ChildSize.Y, 0.4f, 4) / default_aspect;
|
||||
|
||||
Height = height;
|
||||
|
Loading…
Reference in New Issue
Block a user