summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-12 20:00:23 +0000
committerfrosch <frosch@openttd.org>2015-02-12 20:00:23 +0000
commit2f7de4fd99d1ccec63c54439bc01b1090aaa0b6e (patch)
tree3b1aa7ab13239238a8331cdcea66165b8cfc814d /src/network
parent853e96e67b9708e04a87e5eeab34cca9541b3b7d (diff)
downloadopenttd-2f7de4fd99d1ccec63c54439bc01b1090aaa0b6e.tar.xz
(svn r27144) -Change: The chatbox-width setting now uses percent of screen width instead of pixels.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_chat_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index fdfc4acff..d55407fdd 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -120,7 +120,7 @@ void NetworkInitChatMessage()
_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;