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:
parent
e62eb9a7cb
commit
01f0b19658
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user