Index: src/table/settings.ini
===================================================================
--- src/table/settings.ini (revision 27142)
+++ src/table/settings.ini (working copy)
@@ -3507,12 +3507,12 @@
[SDTC_VAR]
ifdef = ENABLE_NETWORK
-var = gui.network_chat_box_width
+var = gui.network_chat_box_width_pct
type = SLE_UINT16
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
-def = 620
-min = 200
-max = 65535
+def = 40
+min = 10
+max = 100
cat = SC_EXPERT
[SDTC_VAR]
Index: src/network/network_chat_gui.cpp
===================================================================
--- src/network/network_chat_gui.cpp (revision 27142)
+++ src/network/network_chat_gui.cpp (working copy)
@@ -120,7 +120,7 @@
_chatmsg_list = ReallocT(_chatmsg_list, _settings_client.gui.network_chat_box_height);
_chatmsg_box.x = 10;
- _chatmsg_box.width = _settings_client.gui.network_chat_box_width;
+ _chatmsg_box.width = _settings_client.gui.network_chat_box_width_pct * _screen.width / 100;
NetworkReInitChatBoxSize();
_chatmessage_visible = false;
Index: src/settings_type.h
===================================================================
--- src/settings_type.h (revision 27142)
+++ src/settings_type.h (working copy)
@@ -144,7 +144,7 @@
uint8 station_gui_sort_by; ///< sort cargo entries in the station gui by station name or amount
uint8 station_gui_sort_order; ///< the sort order of entries in the station gui - ascending or descending
#ifdef ENABLE_NETWORK
- uint16 network_chat_box_width; ///< width of the chat box in pixels
+ uint16 network_chat_box_width_pct; ///< width of the chat box in pixels
uint8 network_chat_box_height; ///< height of the chat box in lines
uint16 network_chat_timeout; ///< timeout of chat messages in seconds
#endif