Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix column sizing exceeding screen width on tablets #25777

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Dec 15, 2023

This now applies to all skins. I removed the special column adjust because it'd be a bit hard to get right across different skins. Hopefully this doesn't throw people off too much (we could probably just adjust argon across all devices back to 1.8 if so?).

Intentionally not running on invalidation to keep things simple.

Closes #25440 (comment).

if (RuntimeInfo.IsMobile)
{
// These numbers are based on mobile phones, aspect ~1.92.
float mobileAdjust = 2.83f * Math.Min(1, 7f / stageDefinition.Columns);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 2.83f anything? 1.92f is explained, but not this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, this is taken from the ratio applied in the previous version of this code (170 / 60).

@bdach bdach enabled auto-merge December 15, 2023 19:59
@bdach bdach merged commit 7caca90 into ppy:master Dec 15, 2023
11 checks passed
@peppy peppy deleted the fix-tablet-mania-column-sizing branch December 18, 2023 02:44
bdach added a commit to bdach/osu that referenced this pull request May 16, 2024
- Closes ppy#25852
- Reverts ppy#25336 /
  ppy#25777

With the columns not being directly touchable anymore after
ppy#28173 I see very little point to this
continuing to exist.
TextAdventurer12 pushed a commit to TextAdventurer12/osu that referenced this pull request Jul 6, 2024
- Closes ppy#25852
- Reverts ppy#25336 /
  ppy#25777

With the columns not being directly touchable anymore after
ppy#28173 I see very little point to this
continuing to exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

osu!mania 7K playfield goes off on mobile screens
2 participants