From 2b7bd9d4a8ce6b7b050a289a049f8fc6d318be01 Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Sat, 16 Dec 2023 02:41:22 -0300 Subject: [PATCH] Fixed Size ToRelative and ToScaled being swapped around --- LemonUI/Tools/Extensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LemonUI/Tools/Extensions.cs b/LemonUI/Tools/Extensions.cs index d3f6556..4d9c7e8 100644 --- a/LemonUI/Tools/Extensions.cs +++ b/LemonUI/Tools/Extensions.cs @@ -60,13 +60,13 @@ public static class Extensions /// /// The scaled SizeF. /// A new SizeF with relative values. - public static SizeF ToRelative(this SizeF size) => new SizeF(size.Width.ToXScaled(), size.Height.ToYScaled()); + public static SizeF ToRelative(this SizeF size) => new SizeF(size.Width.ToXRelative(), size.Height.ToYRelative()); /// /// Converts a relative 0-1 position into a scaled one. /// /// The relative SizeF. /// A new SizeF with scaled values. - public static SizeF ToScaled(this SizeF size) => new SizeF(size.Width.ToXRelative(), size.Height.ToYRelative()); + public static SizeF ToScaled(this SizeF size) => new SizeF(size.Width.ToXScaled(), size.Height.ToYScaled()); #endregion }