mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Restore appropriate tooltip offset for legacy mode
This commit is contained in:
parent
df91ad1c84
commit
c0060c495a
@ -3136,8 +3136,9 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
|
||||
pos.x = LXIMAGE () - lg;
|
||||
if (pos.x < 0)
|
||||
pos.x = 0;
|
||||
if (pos.y > LYIMAGE () - (GetLocale () == "ar" ? 22 : 16))
|
||||
pos.y = LYIMAGE () - (GetLocale () == "ar" ? 22 : 16);
|
||||
const auto offset = g_settingsOverload & SETTING_LEGACY ? 14 : 16;
|
||||
if (pos.y > LYIMAGE () - (GetLocale () == "ar" ? 22 : offset))
|
||||
pos.y = LYIMAGE () - (GetLocale () == "ar" ? 22 : offset);
|
||||
m_posToolTips = pos;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user