(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
authorrubidium
Sun, 14 Sep 2008 10:39:22 +0000
changeset 10134 213b85713d03
parent 10133 555419932fe2
child 10135 21b4050a479b
(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
src/network/network_chat_gui.cpp
--- a/src/network/network_chat_gui.cpp	Sun Sep 14 10:32:32 2008 +0000
+++ b/src/network/network_chat_gui.cpp	Sun Sep 14 10:39:22 2008 +0000
@@ -118,7 +118,7 @@
 	_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++) {