mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Allow aspect ratios smaller than the default in taiko
This commit is contained in:
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
|
|
||||||
float height = default_relative_height;
|
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 *= Math.Clamp(Parent.ChildSize.X / Parent.ChildSize.Y, 0.4f, 4) / default_aspect;
|
||||||
|
|
||||||
Height = height;
|
Height = height;
|
||||||
|
Reference in New Issue
Block a user