1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 05:39:57 +08:00

Fix negative width or height skin drawables

This commit is contained in:
OliBomby
2024-01-20 16:10:17 +01:00
Unverified
parent 9459c66981
commit a155b315bf
@@ -151,11 +151,11 @@ namespace osu.Game.Overlays.SkinEditor
switch (adjustAxis)
{
case Axes.X:
b.Width = originalWidths[b] * currentScale.X;
b.Width = MathF.Abs(originalWidths[b] * currentScale.X);
break;
case Axes.Y:
b.Height = originalHeights[b] * currentScale.Y;
b.Height = MathF.Abs(originalHeights[b] * currentScale.Y);
break;
case Axes.Both: