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 | fce635719a95a73110b34e59f6f548f02262ecb7 (patch) | |
tree | 2abe7f4b95bdba2a6426609926e9514180a68189 /network_gui.c | |
parent | 7a3fb176db1d4b8fee34aff10041a765ac2afb80 (diff) | |
download | openttd-fce635719a95a73110b34e59f6f548f02262ecb7.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 */ |