From 3a16e0edf141c295280bb55845761f42447cf5ed Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 22 Nov 2009 22:17:06 +0000 Subject: (svn r18249) -Codechange: make the network client list big font aware --- src/network/network_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 77dc0a6e7..147f1f542 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2066,6 +2066,7 @@ struct NetworkClientListWindow : Window { if (widget != CLW_PANEL) return; bool rtl = _dynlang.text_dir == TD_RTL; + int icon_y_offset = 1 + (FONT_HEIGHT_NORMAL - 10) / 2; uint y = r.top + WD_FRAMERECT_TOP; uint left = r.left + WD_FRAMERECT_LEFT; uint right = r.right - WD_FRAMERECT_RIGHT; @@ -2096,7 +2097,7 @@ struct NetworkClientListWindow : Window { } /* Filter out spectators */ - if (Company::IsValidID(ci->client_playas)) DrawCompanyIcon(ci->client_playas, icon_left, y + 1); + if (Company::IsValidID(ci->client_playas)) DrawCompanyIcon(ci->client_playas, icon_left, y + icon_y_offset); DrawString(name_left, name_right, y, ci->client_name, colour); -- cgit v1.2.3-70-g09d2