summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-03-14 00:57:52 +0000
committerpeter1138 <peter1138@openttd.org>2017-03-14 00:57:52 +0000
commited01e81c42932322a1990110b954dc7a6bf0a4e5 (patch)
treeb4f40415654eff9317e430eae680d573a8014ce4 /src
parentff26c6393e3da796ab14a53462e423909752f68d (diff)
downloadopenttd-ed01e81c42932322a1990110b954dc7a6bf0a4e5.tar.xz
(svn r27794) -Fix [FS#6526]: Chat text background overflowed due to missing padding.
Diffstat (limited to 'src')
-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 3416762d0..f1e54f38d 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -110,7 +110,7 @@ void CDECL NetworkAddChatMessage(TextColour colour, uint duration, const char *m
void NetworkReInitChatBoxSize()
{
_chatmsg_box.y = 3 * FONT_HEIGHT_NORMAL;
- _chatmsg_box.height = MAX_CHAT_MESSAGES * (FONT_HEIGHT_NORMAL + NETWORK_CHAT_LINE_SPACING) + 2;
+ _chatmsg_box.height = MAX_CHAT_MESSAGES * (FONT_HEIGHT_NORMAL + NETWORK_CHAT_LINE_SPACING) + 4;
_chatmessage_backup = ReallocT(_chatmessage_backup, _chatmsg_box.width * _chatmsg_box.height * BlitterFactory::GetCurrentBlitter()->GetBytesPerPixel());
}