Fixed text clipping issues (only if using irrlicht 1.8)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8059 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
30d39e30f0
commit
c4660216fd
@ -20,6 +20,7 @@
|
||||
#include "guiengine/scalable_font.hpp"
|
||||
#include "guiengine/widgets/icon_button_widget.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include "utils/translation.hpp"
|
||||
|
||||
using namespace GUIEngine;
|
||||
using namespace irr::video;
|
||||
@ -135,6 +136,11 @@ void IconButtonWidget::add()
|
||||
{
|
||||
m_label->setOverrideFont( GUIEngine::getSmallFont() );
|
||||
}
|
||||
|
||||
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
|
||||
m_label->setRightToLeft( translations->isRTLLanguage() );
|
||||
m_label->setTextRestrainedInside(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
// ---- IDs
|
||||
|
@ -74,6 +74,8 @@ void LabelWidget::add()
|
||||
}
|
||||
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
|
||||
irrwidget->setRightToLeft( translations->isRTLLanguage() );
|
||||
|
||||
irrwidget->setTextRestrainedInside(false);
|
||||
#endif
|
||||
|
||||
m_element = irrwidget;
|
||||
|
Loading…
x
Reference in New Issue
Block a user