mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 07:19:54 +08:00
Simplify portrait check
This commit is contained in:
@@ -38,7 +38,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
base.Update();
|
||||
|
||||
float aspectRatio = DrawWidth / DrawHeight;
|
||||
bool isPortrait = aspectRatio < 4 / 3f;
|
||||
bool isPortrait = aspectRatio < 1f;
|
||||
|
||||
if (isPortrait && drawableManiaRuleset.Beatmap.Stages.Count == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user