Path: blob/master/osu.Game/Screens/OnlinePlay/Matchmaking/InverseScalingDrawSizePreservingFillContainer.cs
4915 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Screens.OnlinePlay.Matchmaking { public partial class InverseScalingDrawSizePreservingFillContainer : ScalingContainer.ScalingDrawSizePreservingFillContainer { public InverseScalingDrawSizePreservingFillContainer() : base(true) { } protected override void Update() { Size = new Vector2(CurrentScale); Scale = new Vector2(1 / CurrentScale); } } }