Fix usage of culture local ToUpper causing incorrect display on Turkish machines

Closes #3098.
This commit is contained in:
Dean Herbert
2018-07-24 11:34:06 +02:00
parent 9dc55688d2
commit ab9340f4be
11 changed files with 26 additions and 15 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Globalization;
using OpenTK;
using osu.Framework.Allocation;
using osu.Framework.Extensions;
@ -51,7 +52,7 @@ namespace osu.Game.Rulesets.Judgements
Child = new SkinnableDrawable($"Play/{Judgement.Result}", _ => JudgementText = new OsuSpriteText
{
Text = Judgement.Result.GetDescription().ToUpper(),
Text = Judgement.Result.GetDescription().ToUpper(CultureInfo.InvariantCulture),
Font = @"Venera",
Colour = judgementColour(Judgement.Result),
Scale = new Vector2(0.85f, 1),