Use Color.ToString() in perf logs.

This commit is contained in:
Paul Chote
2018-12-30 15:40:48 +00:00
parent 015316e909
commit 094c8b6432

View File

@@ -62,7 +62,7 @@ namespace OpenRA.Graphics
void PrecacheColor(Color c, string name)
{
using (new PerfTimer("PrecacheColor {0} {1}px {2}".F(name, size, c.Name)))
using (new PerfTimer("PrecacheColor {0} {1}px {2}".F(name, size, c)))
for (var n = (char)0x20; n < (char)0x7f; n++)
if (glyphs[Pair.New(n, c)] == null)
throw new InvalidOperationException();