mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Internal: tried to fix case sensitivity issues in X11R6RGB colors
This commit is contained in:
parent
17fb9157df
commit
76213ae1d6
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
|
||||
internal X11R6RGBParser()
|
||||
{
|
||||
knowncolors = new Dictionary<string, PixelColor>(StringComparer.OrdinalIgnoreCase);
|
||||
knowncolors = new Dictionary<string, PixelColor>(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);
|
||||
|
|
Loading…
Reference in a new issue