Skip to content

Commit

Permalink
Simplify portrait check
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Jan 1, 2025
1 parent bea61d2 commit 64e557d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override void Update()
base.Update();

float aspectRatio = DrawWidth / DrawHeight;
bool isPortrait = aspectRatio < 4 / 3f;
bool isPortrait = aspectRatio < 1f;

if (isPortrait && drawableManiaRuleset.Beatmap.Stages.Count == 1)
{
Expand Down

0 comments on commit 64e557d

Please sign in to comment.