1
0
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:
Mathieu Schroeter 2022-10-22 18:36:15 +02:00
parent df91ad1c84
commit c0060c495a
No known key found for this signature in database
GPG Key ID: 8B9145A5FA9DA8A8

View File

@ -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;
}