diff options
author | frosch <frosch@openttd.org> | 2009-12-05 13:53:58 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-05 13:53:58 +0000 |
commit | a12d91423befb780b3a370b69b070bd1e994fa26 (patch) | |
tree | 660cbfccc1095df79ae63cd77ee1386a4df7897e /src/network | |
parent | 4047c142ebebb06cd85e8f3f6aab3f4746968bc7 (diff) | |
download | openttd-a12d91423befb780b3a370b69b070bd1e994fa26.tar.xz |
(svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 1879446be..d2e7c3ab0 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2030,13 +2030,13 @@ struct NetworkClientListWindow : Window { this->server_client_width = max(GetStringBoundingBox(STR_NETWORK_SERVER).width, GetStringBoundingBox(STR_NETWORK_CLIENT).width) + WD_FRAMERECT_RIGHT; this->company_icon_width = GetSpriteSize(SPR_COMPANY_ICON).width + WD_FRAMERECT_LEFT; - uint width = 200; // Default width + uint width = 100; // Default width const NetworkClientInfo *ci; FOR_ALL_CLIENT_INFOS(ci) { width = max(width, GetStringBoundingBox(ci->client_name).width); } - size->width = WD_FRAMERECT_LEFT + this->server_client_width + this->company_icon_width + WD_FRAMERECT_RIGHT; + size->width = WD_FRAMERECT_LEFT + this->server_client_width + this->company_icon_width + width + WD_FRAMERECT_RIGHT; } virtual void OnPaint() |