diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-27 11:08:17 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-27 11:08:17 +0000 |
commit | 2543ab6b27be1b3bfdded804a1a628bdc996179a (patch) | |
tree | 2abe7f4b95bdba2a6426609926e9514180a68189 /network_gui.c | |
parent | 596da29170b0b808d7e36ee940e8bfc2a408e523 (diff) | |
download | openttd-2543ab6b27be1b3bfdded804a1a628bdc996179a.tar.xz |
(svn r6956) -Feature: Increase the chatbuffer of chat messages. Messages longer than the allocated
graphical box will be wrapped to a new line.
Diffstat (limited to 'network_gui.c')
-rw-r--r-- | network_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network_gui.c b/network_gui.c index d2ed26e52..d254e67b5 100644 --- a/network_gui.c +++ b/network_gui.c @@ -49,7 +49,7 @@ assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(network_ql_d)); /* Global to remember sorting after window has been closed */ static Listing _ng_sorting; -static char _edit_str_buf[64]; +static char _edit_str_buf[150]; static bool _chat_tab_completion_active; static void ShowNetworkStartServerWindow(void); @@ -1708,7 +1708,7 @@ void ShowNetworkChatQueryWindow(DestType type, byte dest) WP(w,querystr_d).wnd_class = WC_MAIN_TOOLBAR; WP(w,querystr_d).wnd_num = 0; WP(w,querystr_d).afilter = CS_ALPHANUMERAL; - InitializeTextBuffer(&WP(w, querystr_d).text, _edit_str_buf, lengthof(_edit_str_buf), w->widget[2].right - w->widget[2].left); + InitializeTextBuffer(&WP(w, querystr_d).text, _edit_str_buf, lengthof(_edit_str_buf), 0); } #endif /* ENABLE_NETWORK */ |