Skip to content

Commit

Permalink
Merge pull request #5887 from frenzibyte/overlays-safe-area
Browse files Browse the repository at this point in the history
Fix game tools being rendered outside safe area
  • Loading branch information
peppy authored Jul 5, 2023
2 parents a6cccfb + c598a9b commit 5882d25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions osu.Framework/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@ protected Game()
RelativeSizeAxes = Axes.Both,
});

base.AddInternal(overlayContent = new DrawSizePreservingFillContainer
base.AddInternal(new SafeAreaContainer
{
TargetDrawSize = new Vector2(1280, 960),
RelativeSizeAxes = Axes.Both,
Child = overlayContent = new DrawSizePreservingFillContainer
{
TargetDrawSize = new Vector2(1280, 960),
RelativeSizeAxes = Axes.Both,
}
});
}

Expand Down

0 comments on commit 5882d25

Please sign in to comment.