Fixed scrolling test under irrlicht 1.8

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8062 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-03-25 19:31:03 +00:00
parent b65915a919
commit 9306c5c7e6

View File

@ -71,11 +71,12 @@ void LabelWidget::add()
{
irrwidget = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), widget_size,
false, word_wrap, m_parent, -1);
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
irrwidget->setTextRestrainedInside(false);
#endif
}
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
irrwidget->setRightToLeft( translations->isRTLLanguage() );
irrwidget->setTextRestrainedInside(false);
#endif
m_element = irrwidget;