From 76213ae1d6eb17bf0f5e081e2919c6cf01e1d8b4 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Tue, 17 Jan 2017 04:56:44 +0200 Subject: [PATCH] Internal: tried to fix case sensitivity issues in X11R6RGB colors --- Source/Core/ZDoom/X11R6RGBParser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/ZDoom/X11R6RGBParser.cs b/Source/Core/ZDoom/X11R6RGBParser.cs index 9fb3a6cb..5ddaf985 100755 --- a/Source/Core/ZDoom/X11R6RGBParser.cs +++ b/Source/Core/ZDoom/X11R6RGBParser.cs @@ -30,7 +30,7 @@ namespace CodeImp.DoomBuilder.ZDoom internal X11R6RGBParser() { - knowncolors = new Dictionary(StringComparer.OrdinalIgnoreCase); + knowncolors = new Dictionary(StringComparer.InvariantCultureIgnoreCase); } #endregion @@ -73,6 +73,7 @@ namespace CodeImp.DoomBuilder.ZDoom // Assemble name string colorname = string.Join("", parts, 3, parts.Length - 3); + colorname = colorname.ToLowerInvariant(); // [ZZ] just to make sure, even though it's OrdinalIgnoreCase // Add to collection knowncolors[colorname] = new PixelColor(255, r, g, b);