From: Perttu Ahola Date: Sat, 18 Jun 2011 05:50:14 +0000 (+0300) Subject: enabled word wrap in chat X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4a6e6cee2087deaf45d741154d03227774bb5168;p=zefram%2Fminetest%2Fminetest_engine.git enabled word wrap in chat --- diff --git a/src/game.cpp b/src/game.cpp index d9bbe795..4d943f45 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -871,8 +871,8 @@ void the_game( gui::IGUIStaticText *guitext_chat = guienv->addStaticText( L"", core::rect(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 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);