aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-20 15:18:45 +0200
committersapier <Sapier at GMX dot net>2014-06-20 15:18:45 +0200
commit2dd69a85e71da15a58e59e12d5e986a617429c8f (patch)
tree788fcf343eadcd185dda1f65e4c8f6ed586f309b
parent3a9cf216641aeb4f16570c69e3df760108b7c9e8 (diff)
downloadminetest-2dd69a85e71da15a58e59e12d5e986a617429c8f.tar.gz
minetest-2dd69a85e71da15a58e59e12d5e986a617429c8f.tar.bz2
minetest-2dd69a85e71da15a58e59e12d5e986a617429c8f.zip
Fix chat overlaying full screen, now it's gonna overlay only up to length of longest line
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
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);