From 8d4d9b7befb621d18c4395c19a08bc04f6a18c30 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 23 Apr 2025 15:40:39 +0900 Subject: [PATCH] Fix tablet settings adjusting with too much precision Closes https://github.com/ppy/osu/issues/32920. I don't know if there's going to be other cases of breakage, but from what I can tell these settings *not* showing infinite precision representations was a bug with the previous implementation of number formatting. --- .../Overlays/Settings/Sections/Input/TabletSettings.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs b/osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs index e104bb7e39..3ce546785a 100644 --- a/osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs +++ b/osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs @@ -37,13 +37,13 @@ namespace osu.Game.Overlays.Settings.Sections.Input private readonly Bindable areaSize = new Bindable(); private readonly IBindable tablet = new Bindable(); - private readonly BindableNumber offsetX = new BindableNumber { MinValue = 0 }; - private readonly BindableNumber offsetY = new BindableNumber { MinValue = 0 }; + private readonly BindableNumber offsetX = new BindableNumber { MinValue = 0, Precision = 1 }; + private readonly BindableNumber offsetY = new BindableNumber { MinValue = 0, Precision = 1 }; - private readonly BindableNumber sizeX = new BindableNumber { MinValue = 10 }; - private readonly BindableNumber sizeY = new BindableNumber { MinValue = 10 }; + private readonly BindableNumber sizeX = new BindableNumber { MinValue = 10, Precision = 1 }; + private readonly BindableNumber sizeY = new BindableNumber { MinValue = 10, Precision = 1 }; - private readonly BindableNumber rotation = new BindableNumber { MinValue = 0, MaxValue = 360 }; + private readonly BindableNumber rotation = new BindableNumber { MinValue = 0, MaxValue = 360, Precision = 1 }; private readonly BindableNumber pressureThreshold = new BindableNumber { MinValue = 0.0f, MaxValue = 1.0f, Precision = 0.005f };