Fix nested ui scale example screens no longer fitting

This commit is contained in:
Dean Herbert 2022-05-10 17:44:23 +09:00
parent 63b9e01d38
commit 493798ae5e
1 changed files with 3 additions and 1 deletions

View File

@ -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))
@ -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