diff --git a/osu.Game/Graphics/Backgrounds/Background.cs b/osu.Game/Graphics/Backgrounds/Background.cs index 348e46e65f..368bb7d723 100644 --- a/osu.Game/Graphics/Backgrounds/Background.cs +++ b/osu.Game/Graphics/Backgrounds/Background.cs @@ -28,7 +28,8 @@ namespace osu.Game.Graphics.Backgrounds { Anchor = Anchor.Centre, Origin = Anchor.Centre, - Colour = Color4.DarkGray + Colour = Color4.DarkGray, + FillMode = FillMode.Fill, }); } @@ -38,11 +39,5 @@ namespace osu.Game.Graphics.Backgrounds if (!string.IsNullOrEmpty(textureName)) Sprite.Texture = textures.Get(textureName); } - - protected override void Update() - { - base.Update(); - Sprite.Scale = new Vector2(Math.Max(DrawSize.X / Sprite.DrawSize.X, DrawSize.Y / Sprite.DrawSize.Y)); - } } } diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index 1a3245e41c..27080c8db4 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -392,7 +392,8 @@ namespace osu.Game.Overlays { sprite = new Sprite { - Colour = new Color4(150, 150, 150, 255) + Colour = new Color4(150, 150, 150, 255), + FillMode = FillMode.Fill, }, new Box { @@ -410,12 +411,6 @@ namespace osu.Game.Overlays { sprite.Texture = beatmap?.Background ?? textures.Get(@"Backgrounds/bg4"); } - - protected override void LoadComplete() - { - base.LoadComplete(); - sprite.Scale = new Vector2(Math.Max(DrawSize.X / sprite.DrawSize.X, DrawSize.Y / sprite.DrawSize.Y)); - } } } }