Fix chat overlaying full screen, now it's gonna overlay only up to length of longest...
authorsapier <Sapier at GMX dot net>
Fri, 20 Jun 2014 13:18:45 +0000 (15:18 +0200)
committersapier <Sapier at GMX dot net>
Fri, 20 Jun 2014 13:18:45 +0000 (15:18 +0200)
src/game.cpp

index 9bbbb5ecf9bb1be566c0f0f9b3249b473f7ff69f..4e2677be6e18759997a81399b7b9766597486419 100644 (file)
@@ -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);