diff --git a/src/event.cxx b/src/event.cxx index 25e217f..7b922e3 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -2145,7 +2145,8 @@ CEvent::DrawButtons () snprintf ( res, sizeof (res), "%s %u.%u.%u%s", gettext ("Version"), PB_VERSION_MAJOR, PB_VERSION_MINOR, PB_VERSION_PATCH, PB_VERSION_EXTRA); - pos.x = LXIMAGE () - GetTextWidth (res, FONTLITTLE) - 4; + pos.x = IsRightReading () ? 4 + GetTextWidth (res, FONTLITTLE) + : LXIMAGE () - GetTextWidth (res, FONTLITTLE) - 4; pos.y = 465; DrawText (m_pPixmap, pos, res, FONTLITTLE); @@ -3038,7 +3039,7 @@ CEvent::EventButtons (const SDL_Event & event, Point pos) lg = GetTextWidth (m_textToolTips); pos.x += IsRightReading () ? -10 : 10; pos.y += 20; - if (pos.x > LXIMAGE () + (IsRightReading () ? 0 : - lg)) + if (pos.x > LXIMAGE () + (IsRightReading () ? 0 : -lg)) pos.x = LXIMAGE () - lg; if (pos.x < 0) pos.x = 0; diff --git a/src/text.cxx b/src/text.cxx index ac953de..848e627 100644 --- a/src/text.cxx +++ b/src/text.cxx @@ -327,8 +327,10 @@ DrawTextCenter (CPixmap * pPixmap, Point pos, const char * pText, Sint32 font) if (*pText == '\n') pText++; // saute '\n' - pDest = text; - start.x = pos.x - GetTextWidth (pDest) / 2; + pDest = text; + start.x = + pos.x + + (IsRightReading () ? GetTextWidth (pDest) : -GetTextWidth (pDest)) / 2; start.y = pos.y; DrawText (pPixmap, start, pDest, font);