Changeset - r13714:416e1763be25
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-22 22:17:06
rubidium@openttd.org
(svn r18249) -Codechange: make the network client list big font aware
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -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);
 

	
0 comments (0 inline, 0 general)