diff --git a/src/button.cxx b/src/button.cxx index a70aef4..5d264ed 100644 --- a/src/button.cxx +++ b/src/button.cxx @@ -55,7 +55,8 @@ CButton::~CButton () {} bool CButton::Create ( CPixmap * pPixmap, CSound * pSound, Point pos, Sint32 type, Sint32 * pMenu, - Sint32 nbMenu, const char ** pToolTips, Sint32 region, Uint32 message) + Sint32 nbMenu, const char ** pToolTips, Sint32 region, Uint32 message, + bool isRightReading) { Point iconDim; Sint32 i, icon; @@ -92,6 +93,14 @@ CButton::Create ( { icon = pMenu[i]; + if (isRightReading) + { + if (icon == 51) // right arrow + icon = 50; + else if (icon == 50) // left arrow + icon = 51; + } + if (region == 1) // palmiers ? { if (icon == 0) diff --git a/src/button.h b/src/button.h index 912e4c5..bc991d3 100644 --- a/src/button.h +++ b/src/button.h @@ -36,7 +36,8 @@ public: bool Create ( CPixmap * pPixmap, CSound * pSound, Point pos, Sint32 type, Sint32 * pMenu, - Sint32 nbMenu, const char ** pToolTips, Sint32 region, Uint32 message); + Sint32 nbMenu, const char ** pToolTips, Sint32 region, Uint32 message, + bool isRightReading); void Draw (); Sint32 GetState (); diff --git a/src/event.cxx b/src/event.cxx index 6a1231f..026a6f2 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -2065,7 +2065,7 @@ CEvent::CreateButtons (Sint32 phase) m_pPixmap, m_pSound, pos, table[m_index].buttons[i].type, table[m_index].buttons[i].iconMenu + 1, table[m_index].buttons[i].iconMenu[0], table[m_index].buttons[i].toolTips, - m_pDecor->GetRegion (), message); + m_pDecor->GetRegion (), message, isRightReading); i++; }