1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-19 02:22:56 +08:00

Fix the Parallax Background not filling the entire Circle Container.

This commit is contained in:
KoziLord 2018-05-15 00:47:03 +02:00
parent 95a207ef56
commit ca05fde14c

View File

@ -159,8 +159,11 @@ namespace osu.Game.Screens.Ranking
backgroundParallax = new ParallaxContainer backgroundParallax = new ParallaxContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
ParallaxAmount = 0.01f, ParallaxAmount = 0.02f,
Scale = new Vector2(1 / circle_outer_scale), //Compensate for the Toolbar
Scale = new Vector2(1.06f / circle_outer_scale / overscan),
//Offset the background to account for the toolbar.
Position = new Vector2(0, -20),
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Children = new Drawable[] Children = new Drawable[]