mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 17:40:37 +08:00
Fix negative width or height skin drawables
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user