Skip to content

Commit

Permalink
Fix nested ui scale example screens no longer fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed May 10, 2022
1 parent 63b9e01 commit 493798a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osu.Game/Overlays/FirstRunSetup/ScreenUIScale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class ScreenUIScale : FirstRunSetupScreen
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
const float screen_width = 640;

Content.Children = new Drawable[]
{
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
Expand All @@ -54,7 +56,7 @@ private void load(OsuConfigManager config)
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.None,
Size = new Vector2(960, 960 / 16f * 9 / 2),
Size = new Vector2(screen_width, screen_width / 16f * 9 / 2),
Children = new Drawable[]
{
new GridContainer
Expand Down

0 comments on commit 493798a

Please sign in to comment.