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);