diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-17 23:47:03 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-17 23:47:03 +0000 |
commit | 2bbcd41247d9312be1d0b685da0356ac809f2b23 (patch) | |
tree | 983715d5bab53c05ef581f376b30c2c59c3977b2 | |
parent | fab6434d676a4296637e035f7b86b44038a16002 (diff) | |
download | openttd-2bbcd41247d9312be1d0b685da0356ac809f2b23.tar.xz |
(svn r3933) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian).
-rw-r--r-- | network_gui.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/network_gui.c b/network_gui.c index 1204b8638..f27a44136 100644 --- a/network_gui.c +++ b/network_gui.c @@ -1225,8 +1225,9 @@ static Window *PopupClientList(Window *w, int client_no, int x, int y) h = ClientListPopupHeigth(); // Allocate the popup - w = AllocateWindow(x, y, 100, h + 1, ClientListPopupWndProc, WC_TOOLBAR_MENU, _client_list_popup_widgets); + w = AllocateWindow(x, y, 150, h + 1, ClientListPopupWndProc, WC_TOOLBAR_MENU, _client_list_popup_widgets); w->widget[0].bottom = w->widget[0].top + h; + w->widget[0].right = w->widget[0].left + 150; w->flags4 &= ~WF_WHITE_BORDER_MASK; WP(w,menu_d).item_count = 0; @@ -1257,7 +1258,7 @@ static void ClientListPopupWndProc(Window *w, WindowEvent *e) if (_clientlist_proc[i] == NULL) continue; if (sel-- == 0) { // Selected item, highlight it - GfxFillRect(1, y, 98, y + CLNWND_ROWSIZE - 1, 0); + GfxFillRect(1, y, 150 - 2, y + CLNWND_ROWSIZE - 1, 0); colour = 0xC; } else colour = 0x10; @@ -1328,9 +1329,9 @@ static void ClientListWndProc(Window *w, WindowEvent *e) // Filter out spectators if (ci->client_playas > 0 && ci->client_playas <= MAX_PLAYERS) - DrawPlayerIcon(ci->client_playas - 1, 44, y + 1); + DrawPlayerIcon(ci->client_playas - 1, 64, y + 1); - DoDrawString(ci->client_name, 61, y, colour); + DoDrawString(ci->client_name, 81, y, colour); y += CLNWND_ROWSIZE; } |