mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix arabic and hebrew y offset
This commit is contained in:
parent
2be0ed6be4
commit
745f3c3cd0
@ -3137,8 +3137,8 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
|
||||
if (pos.x < 0)
|
||||
pos.x = 0;
|
||||
const auto offset = g_settingsOverload & SETTING_LEGACY ? 14 : 16;
|
||||
if (pos.y > LYIMAGE () - (GetLocale () == "ar" ? 22 : offset))
|
||||
pos.y = LYIMAGE () - (GetLocale () == "ar" ? 22 : offset);
|
||||
if (pos.y > LYIMAGE () - (GetLocale () == "ar" ? 20 : offset))
|
||||
pos.y = LYIMAGE () - (GetLocale () == "ar" ? 20 : offset);
|
||||
m_posToolTips = pos;
|
||||
break;
|
||||
}
|
||||
|
@ -174,6 +174,11 @@ public:
|
||||
int baseW = texText ? texText->baseW : 0;
|
||||
int baseH = texText ? texText->baseH : 0;
|
||||
|
||||
if (GetLocale () == "ar")
|
||||
pos.y -= 2;
|
||||
else if (GetLocale () == "he")
|
||||
pos.y -= 1;
|
||||
|
||||
if (this->outline)
|
||||
{
|
||||
TTF_SetFontOutline (this->font, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user