1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:02:58 +08:00

fix aspect ratio transform

This commit is contained in:
OliBomby 2024-01-20 15:11:35 +01:00
parent e1f3f7d988
commit 6a4129dad8

View File

@ -111,7 +111,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
private void applyScale(bool shouldKeepAspectRatio)
{
var newScale = shouldKeepAspectRatio
? new Vector2(MathF.Max(rawScale.X, rawScale.Y))
? new Vector2((rawScale.X + rawScale.Y) * 0.5f)
: rawScale;
scaleHandler!.Update(newScale, getOriginPosition());