enabled word wrap in chat
authorPerttu Ahola <celeron55@gmail.com>
Sat, 18 Jun 2011 05:50:14 +0000 (08:50 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 18 Jun 2011 05:50:14 +0000 (08:50 +0300)
src/game.cpp

index d9bbe795e76daf9f8ebe4ea57db09f381c7ee2ba..4d943f45f14a2f539fa4d38b5154cedf0a6b5f81 100644 (file)
@@ -871,8 +871,8 @@ void the_game(
        gui::IGUIStaticText *guitext_chat = guienv->addStaticText(
                        L"",
                        core::rect<s32>(0,0,0,0),
-                       false, false); // Disable word wrap as of now
-                       //false, true);
+                       //false, false); // Disable word wrap as of now
+                       false, true);
        //guitext_chat->setBackgroundColor(video::SColor(96,0,0,0));
        core::list<ChatLine> chat_lines;
        
@@ -1996,7 +1996,7 @@ void the_game(
                                        10,
                                        50,
                                        screensize.X - 10,
-                                       50 + text_height*chat_lines.size()
+                                       50 + guitext_chat->getTextHeight()
                        );
 
                        guitext_chat->setRelativePosition(rect);