From 9306c5c7e6b941118589a7831942bd0a20f0980e Mon Sep 17 00:00:00 2001 From: auria Date: Fri, 25 Mar 2011 19:31:03 +0000 Subject: [PATCH] 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 --- src/guiengine/widgets/label_widget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/guiengine/widgets/label_widget.cpp b/src/guiengine/widgets/label_widget.cpp index 93b111d2b..103fdda41 100644 --- a/src/guiengine/widgets/label_widget.cpp +++ b/src/guiengine/widgets/label_widget.cpp @@ -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;