From a774bb8a9baec4fe5208c5d80b0df631d73ccbcb Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 15 Jan 2011 20:53:13 +0000 Subject: [PATCH] Properly align text in bubbles when language is RTL git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7426 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/widgets/bubble_widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/guiengine/widgets/bubble_widget.cpp b/src/guiengine/widgets/bubble_widget.cpp index 1b3440ca5..21d199aaf 100644 --- a/src/guiengine/widgets/bubble_widget.cpp +++ b/src/guiengine/widgets/bubble_widget.cpp @@ -17,6 +17,7 @@ #include "guiengine/engine.hpp" #include "guiengine/widgets/bubble_widget.hpp" + #include using namespace irr::core; using namespace irr::gui; @@ -41,6 +42,8 @@ void BubbleWidget::add() EGUI_ALIGNMENT align = EGUIA_UPPERLEFT; if (m_properties[PROP_TEXT_ALIGN] == "center") align = EGUIA_CENTER; else if (m_properties[PROP_TEXT_ALIGN] == "right") align = EGUIA_LOWERRIGHT; + else if (translations->isRTLLanguage()) align = EGUIA_LOWERRIGHT; + EGUI_ALIGNMENT valign = EGUIA_CENTER ; //TODO: make label v-align configurable through XML file? IGUIStaticText* irrwidget;