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:
parent
e1f3f7d988
commit
6a4129dad8
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user