diff options
author | rubidium <rubidium@openttd.org> | 2009-11-22 22:17:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-22 22:17:06 +0000 |
commit | 3a16e0edf141c295280bb55845761f42447cf5ed (patch) | |
tree | 137c11a4ea9b5748fc248ec2c350eb6d3a9152db | |
parent | 95436bb5b299147b326c26aa1b78dc8549f3cfb2 (diff) | |
download | openttd-3a16e0edf141c295280bb55845761f42447cf5ed.tar.xz |
(svn r18249) -Codechange: make the network client list big font aware
-rw-r--r-- | src/network/network_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |