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

Fix buttons highlight for right layout

This commit is contained in:
Mathieu Schroeter 2019-01-29 22:15:16 +01:00
parent e62eb9a7cb
commit 01f0b19658
2 changed files with 6 additions and 0 deletions

View File

@ -340,6 +340,9 @@ CButton::Detect (Point pos)
if (m_bHide || !m_bEnable)
return false;
if (IsRightReading ())
pos.x = LXIMAGE () - pos.x;
if (m_nbMenu > 1 && m_bMouseDown) // sous-menu déroulé ?
width += 2 + (m_dim.x - 1) * m_nbMenu;

View File

@ -2989,6 +2989,9 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
m_textToolTips[0] = 0;
m_posToolTips.x = -1;
if (IsRightReading ())
pos.x = LXIMAGE () - pos.x;
if (m_phase == EV_PHASE_PLAY)
{
auto progress = [&](CJauge & prog, const char * text) -> bool {