From fc5350c9f8a6eff9bbc99c1cfe82a0f7dea21e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 1 Mar 2013 10:30:41 +0100 Subject: [PATCH] fix #2663 crash when displaying the spawn tooltip in cnc don't hard-code ra border chrome in shared lobbyutils --- OpenRA.Mods.RA/Widgets/Logic/LobbyUtils.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenRA.Mods.RA/Widgets/Logic/LobbyUtils.cs b/OpenRA.Mods.RA/Widgets/Logic/LobbyUtils.cs index d752b16959..c04e295525 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/LobbyUtils.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/LobbyUtils.cs @@ -183,9 +183,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic var client = orderManager.LobbyInfo.Clients.FirstOrDefault(c => c.SpawnPoint == spawnPoint); if (client != null) { - var rect = new Rectangle(position.X, position.Y, Game.Renderer.Fonts["Regular"].Measure(client.Name).X + 15, 25); - WidgetUtils.DrawPanel("dialog4", rect); - Game.Renderer.Fonts["Regular"].DrawText(client.Name, position + new int2(5, 5), Color.White); + Game.Renderer.Fonts["Bold"].DrawTextWithContrast(client.Name, position + new int2(5, 5), Color.White, Color.Black, 1); } } }