Use explicit culture info rather than `null`

This commit is contained in:
Salman Ahmed 2022-02-16 10:35:57 +03:00
parent 8b30c847f9
commit b66566e96d
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Globalization;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
@ -13,6 +14,6 @@ namespace osu.Game.Overlays.Settings.Sections
internal class SizeSlider<T> : OsuSliderBar<T>
where T : struct, IEquatable<T>, IComparable<T>, IConvertible, IFormattable
{
public override LocalisableString TooltipText => Current.Value.ToString(@"0.##x", null);
public override LocalisableString TooltipText => Current.Value.ToString(@"0.##x", NumberFormatInfo.CurrentInfo);
}
}