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:
parent
baa3b7141b
commit
4580822c38
@ -2145,7 +2145,8 @@ CEvent::DrawButtons ()
|
|||||||
snprintf (
|
snprintf (
|
||||||
res, sizeof (res), "%s %u.%u.%u%s", gettext ("Version"), PB_VERSION_MAJOR,
|
res, sizeof (res), "%s %u.%u.%u%s", gettext ("Version"), PB_VERSION_MAJOR,
|
||||||
PB_VERSION_MINOR, PB_VERSION_PATCH, PB_VERSION_EXTRA);
|
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;
|
pos.y = 465;
|
||||||
DrawText (m_pPixmap, pos, res, FONTLITTLE);
|
DrawText (m_pPixmap, pos, res, FONTLITTLE);
|
||||||
|
|
||||||
@ -3038,7 +3039,7 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
|
|||||||
lg = GetTextWidth (m_textToolTips);
|
lg = GetTextWidth (m_textToolTips);
|
||||||
pos.x += IsRightReading () ? -10 : 10;
|
pos.x += IsRightReading () ? -10 : 10;
|
||||||
pos.y += 20;
|
pos.y += 20;
|
||||||
if (pos.x > LXIMAGE () + (IsRightReading () ? 0 : - lg))
|
if (pos.x > LXIMAGE () + (IsRightReading () ? 0 : -lg))
|
||||||
pos.x = LXIMAGE () - lg;
|
pos.x = LXIMAGE () - lg;
|
||||||
if (pos.x < 0)
|
if (pos.x < 0)
|
||||||
pos.x = 0;
|
pos.x = 0;
|
||||||
|
@ -327,8 +327,10 @@ DrawTextCenter (CPixmap * pPixmap, Point pos, const char * pText, Sint32 font)
|
|||||||
if (*pText == '\n')
|
if (*pText == '\n')
|
||||||
pText++; // saute '\n'
|
pText++; // saute '\n'
|
||||||
|
|
||||||
pDest = text;
|
pDest = text;
|
||||||
start.x = pos.x - GetTextWidth (pDest) / 2;
|
start.x =
|
||||||
|
pos.x +
|
||||||
|
(IsRightReading () ? GetTextWidth (pDest) : -GetTextWidth (pDest)) / 2;
|
||||||
start.y = pos.y;
|
start.y = pos.y;
|
||||||
DrawText (pPixmap, start, pDest, font);
|
DrawText (pPixmap, start, pDest, font);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user