Remove background scale altogether

I'm not sure why this is required. Seems like something which was meant
to exist to handle parallax, but that is already handled elsewhere now.
This commit is contained in:
Dean Herbert 2021-08-23 14:30:34 +09:00
parent 4f3a5fbad5
commit 58fb0c042b
2 changed files with 0 additions and 14 deletions

View File

@ -4,25 +4,19 @@
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Screens;
using osuTK;
namespace osu.Game.Screens
{
public class BackgroundScreenStack : ScreenStack
{
public const float BACKGROUND_SCALE = 1.06f;
public BackgroundScreenStack()
: base(false)
{
Scale = new Vector2(BACKGROUND_SCALE);
RelativeSizeAxes = Axes.Both;
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
}
//public float ParallaxAmount { set => parallax.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * value; }
public void Push(BackgroundScreen screen)
{
if (screen == null)

View File

@ -77,14 +77,6 @@ private void switchBackground(PlaylistItemBackground newBackground)
AddInternal(background = newBackground);
}
protected override void Update()
{
base.Update();
// This is a static screen, so override the scale set in base.Update(), but also the scale set by the screen stack.
Scale = new Vector2(1f / BackgroundScreenStack.BACKGROUND_SCALE);
}
public override void OnSuspending(IScreen next)
{
base.OnSuspending(next);