From 094c8b6432a552f81ab88e6b3a8adbbee0335c26 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 30 Dec 2018 15:40:48 +0000 Subject: [PATCH] Use Color.ToString() in perf logs. --- OpenRA.Game/Graphics/SpriteFont.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/SpriteFont.cs b/OpenRA.Game/Graphics/SpriteFont.cs index a6cd5c02c8..a6e45b90b7 100644 --- a/OpenRA.Game/Graphics/SpriteFont.cs +++ b/OpenRA.Game/Graphics/SpriteFont.cs @@ -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();