1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Allow aspect ratios smaller than the default in taiko

This commit is contained in:
sw1tchbl4d3 2022-12-28 11:42:34 +01:00
parent 5e8ca11ded
commit 9021cf7be6

View File

@ -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;