From 2dd69a85e71da15a58e59e12d5e986a617429c8f Mon Sep 17 00:00:00 2001
From: sapier <Sapier at GMX dot net>
Date: Fri, 20 Jun 2014 15:18:45 +0200
Subject: [PATCH] Fix chat overlaying full screen, now it's gonna overlay only
 up to length of longest line

---
 src/game.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/game.cpp b/src/game.cpp
index 9bbbb5ecf..4e2677be6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3227,7 +3227,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
 				core::rect<s32> rect(
 						10,
 						status_y - guitext_status->getTextHeight(),
-						screensize.X - 10,
+						10 + guitext_chat->getTextWidth(),
 						status_y
 				);
 				guitext_status->setRelativePosition(rect);
-- 
GitLab