1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Upscale playfield by difference in game height as well

I honestly don't have much clue about this one but doing so matches master.
This commit is contained in:
Salman Ahmed 2024-01-20 00:20:43 +03:00
parent f5ce9eaf75
commit fa2c33c641

View File

@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Taiko.UI
// Note that the relative height cannot exceed one-third - if that limit is hit, the playfield will be exactly centered.
Y = relativeHeight;
Scale = new Vector2(Math.Max(relativeHeight / base_relative_height, 1f));
Scale = new Vector2(Math.Max((Parent!.ChildSize.Y / 768f) * (relativeHeight / base_relative_height), 1f));
Width = 1 / Scale.X;
}
}