Fix major regression in scaling behaviour

This commit is contained in:
Dean Herbert 2019-01-31 18:25:25 +09:00
parent 668a39ac6d
commit ba6176fd03

View File

@ -356,17 +356,20 @@ namespace osu.Game
ActionRequested = action => volume.Adjust(action), ActionRequested = action => volume.Adjust(action),
ScrollActionRequested = (action, amount, isPrecise) => volume.Adjust(action, amount, isPrecise), ScrollActionRequested = (action, amount, isPrecise) => volume.Adjust(action, amount, isPrecise),
}, },
screenContainer = new ScalingContainer(ScalingMode.ExcludeOverlays)
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
backgroundParallax = new ParallaxContainer backgroundParallax = new ParallaxContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Child = backgroundStack = new BackgroundScreenStack { RelativeSizeAxes = Axes.Both }, Child = backgroundStack = new BackgroundScreenStack { RelativeSizeAxes = Axes.Both },
}, },
screenContainer = new ScalingContainer(ScalingMode.ExcludeOverlays) screenStack = new ScreenStack { RelativeSizeAxes = Axes.Both },
{
RelativeSizeAxes = Axes.Both,
Child = screenStack = new ScreenStack { RelativeSizeAxes = Axes.Both }
},
logoContainer = new Container { RelativeSizeAxes = Axes.Both }, logoContainer = new Container { RelativeSizeAxes = Axes.Both },
}
},
overlayContent = new Container overlayContent = new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,