summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-14 10:39:22 +0000
committerrubidium <rubidium@openttd.org>2008-09-14 10:39:22 +0000
commit811193e46889850d4fef3454ed7301e017c6e4a6 (patch)
tree960ecbc2f8fc1bd4cacb90e0692443081c5c2bfc /src/network
parent9174c19291acc766143a2a01dcaa141b6b05b82d (diff)
downloadopenttd-811193e46889850d4fef3454ed7301e017c6e4a6.tar.xz
(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
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 a62dc622a..fe9a85289 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -118,7 +118,7 @@ void NetworkInitChatMessage()
_chatmsg_box.x = 10;
_chatmsg_box.y = 30;
_chatmsg_box.width = _settings_client.gui.network_chat_box_width;
- _chatmsg_box.height = _settings_client.gui.network_chat_box_height * NETWORK_CHAT_LINE_HEIGHT;
+ _chatmsg_box.height = _settings_client.gui.network_chat_box_height * NETWORK_CHAT_LINE_HEIGHT + 2;
_chatmessage_backup = ReallocT(_chatmessage_backup, _chatmsg_box.width * _chatmsg_box.height * BlitterFactoryBase::GetCurrentBlitter()->GetBytesPerPixel());
for (uint i = 0; i < MAX_CHAT_MESSAGES; i++) {