summaryrefslogtreecommitdiff
path: root/src/menu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.cxx')
-rw-r--r--src/menu.cxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/menu.cxx b/src/menu.cxx
index 02ffb4e..af8e303 100644
--- a/src/menu.cxx
+++ b/src/menu.cxx
@@ -271,6 +271,8 @@ CMenu::Draw ()
m_pPixmap->DrawIcon (-1, CHBUTTON, state, pos);
icon = table_button_icon[m_buttons[i]];
+ if (IsRightReading () && icon == 40)
+ icon = 109;
if (m_perso == 8) // disciple ?
{
if (icon == 30)
@@ -305,13 +307,16 @@ CMenu::Draw ()
snprintf (text, sizeof (text), "%s", tr);
}
- if (m_nbCel.x > 1 && i < m_nbCel.y)
+ if (
+ (m_nbCel.x > 1 && i < m_nbCel.y) || (IsRightReading () && m_nbCel.x == 1))
{
- pos.x = m_pos.x - 4 - GetTextWidth (text); // texte à gauche
+ pos.x = m_pos.x - 4 -
+ (IsRightReading () ? 0 : GetTextWidth (text)); // texte à gauche
}
else
{
- pos.x = m_pos.x + m_dim.x + 4;
+ pos.x =
+ m_pos.x + m_dim.x + 4 + (IsRightReading () ? GetTextWidth (text) : 0);
}
DrawText (m_pPixmap, pos, text, FONTWHITE);
@@ -331,13 +336,16 @@ CMenu::Draw ()
snprintf (text, sizeof (text), "%s", tr);
}
- if (m_nbCel.x > 1 && i < m_nbCel.y)
+ if (
+ (m_nbCel.x > 1 && i < m_nbCel.y) ||
+ (IsRightReading () && m_nbCel.x == 1))
{
- pos.x = m_pos.x - 4 - GetTextWidth (text);
+ pos.x = m_pos.x - 4 - (IsRightReading () ? 0 : GetTextWidth (text));
}
else
{
- pos.x = m_pos.x + m_dim.x + 4;
+ pos.x =
+ m_pos.x + m_dim.x + 4 + (IsRightReading () ? GetTextWidth (text) : 0);
}
pos.y += DIMTEXTY;