From 1c18f315d6433790f40b9e08b600a0a80f5a7ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Tue, 1 Oct 2024 18:50:27 +0200 Subject: [PATCH] Fix typo in field name --- .../Graphics/Sprites/NineSliceSprite.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Framework/Graphics/Sprites/NineSliceSprite.cs b/osu.Framework/Graphics/Sprites/NineSliceSprite.cs index 50bfc8d3f1..01db40eb22 100644 --- a/osu.Framework/Graphics/Sprites/NineSliceSprite.cs +++ b/osu.Framework/Graphics/Sprites/NineSliceSprite.cs @@ -58,7 +58,7 @@ public MarginPadding TextureInset } } - private Axes textureTextureInsetRelativeAxes; + private Axes textureInsetRelativeAxes; /// /// Controls which of are relative w.r.t. @@ -70,29 +70,29 @@ public MarginPadding TextureInset /// public Axes TextureInsetRelativeAxes { - get => textureTextureInsetRelativeAxes; + get => textureInsetRelativeAxes; set { - if (textureTextureInsetRelativeAxes == value) + if (textureInsetRelativeAxes == value) return; Vector2 textureSize = Texture.DisplaySize; Vector2 conversion = Vector2.One; - if ((value & Axes.X) > 0 && (textureTextureInsetRelativeAxes & Axes.X) == 0) + if ((value & Axes.X) > 0 && (textureInsetRelativeAxes & Axes.X) == 0) conversion.X = Precision.AlmostEquals(textureSize.X, 0) ? 0 : 1 / textureSize.X; - else if ((value & Axes.X) == 0 && (textureTextureInsetRelativeAxes & Axes.X) > 0) + else if ((value & Axes.X) == 0 && (textureInsetRelativeAxes & Axes.X) > 0) conversion.X = textureSize.X; - if ((value & Axes.Y) > 0 && (textureTextureInsetRelativeAxes & Axes.Y) == 0) + if ((value & Axes.Y) > 0 && (textureInsetRelativeAxes & Axes.Y) == 0) conversion.Y = Precision.AlmostEquals(textureSize.Y, 0) ? 0 : 1 / textureSize.Y; - else if ((value & Axes.Y) == 0 && (textureTextureInsetRelativeAxes & Axes.Y) > 0) + else if ((value & Axes.Y) == 0 && (textureInsetRelativeAxes & Axes.Y) > 0) conversion.Y = textureSize.Y; textureInset *= conversion; - textureTextureInsetRelativeAxes = value; + textureInsetRelativeAxes = value; invalidateGeometry(); }