From 2bbcd41247d9312be1d0b685da0356ac809f2b23 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 17 Mar 2006 23:47:03 +0000 Subject: [PATCH] (svn r3933) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian). --- network_gui.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/network_gui.c b/network_gui.c index 1204b8638f..f27a44136e 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; }