1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

WIP: continue fixes for hebrew

This commit is contained in:
Mathieu Schroeter 2019-01-29 23:48:13 +01:00
parent baa3b7141b
commit 4580822c38
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -328,7 +328,9 @@ DrawTextCenter (CPixmap * pPixmap, Point pos, const char * pText, Sint32 font)
pText++; // saute '\n'
pDest = text;
start.x = pos.x - GetTextWidth (pDest) / 2;
start.x =
pos.x +
(IsRightReading () ? GetTextWidth (pDest) : -GetTextWidth (pDest)) / 2;
start.y = pos.y;
DrawText (pPixmap, start, pDest, font);