diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-18 08:50:14 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-18 08:50:14 +0300 |
commit | 4a6e6cee2087deaf45d741154d03227774bb5168 (patch) | |
tree | 1b46db47cc054c775c62a86cf5ed088af3502c78 | |
parent | a4cceb93ec3f2e092d513896e4beeac3bafe3502 (diff) | |
download | minetest-4a6e6cee2087deaf45d741154d03227774bb5168.tar.gz minetest-4a6e6cee2087deaf45d741154d03227774bb5168.tar.bz2 minetest-4a6e6cee2087deaf45d741154d03227774bb5168.zip |
enabled word wrap in chat
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index d9bbe795e..4d943f45f 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<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); |