Skip to content

Commit 22f78ea

Browse files
committedMay 23, 2016
Fix irrlicht version checking macro for tooltip_height calculation
1 parent 725edc7 commit 22f78ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/guiFormSpecMenu.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2265,10 +2265,10 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase,
22652265
this->bringToFront(m_tooltip_element);
22662266
m_tooltip_element->setText(tooltip_text.c_str());
22672267
s32 tooltip_width = m_tooltip_element->getTextWidth() + m_btn_height;
2268-
#if IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8 && IRRLICHT_VERSION_REVISION >= 2
2269-
s32 tooltip_height = m_tooltip_element->getTextHeight() + 5;
2270-
#else
2268+
#if IRRLICHT_VERSION_MAJOR <= 1 && IRRLICHT_VERSION_MINOR <= 8 && IRRLICHT_VERSION_REVISION < 2
22712269
s32 tooltip_height = m_tooltip_element->getTextHeight() * tt_rows.size() + 5;
2270+
#else
2271+
s32 tooltip_height = m_tooltip_element->getTextHeight() + 5;
22722272
#endif
22732273
v2u32 screenSize = driver->getScreenSize();
22742274
int tooltip_offset_x = m_btn_height;

0 commit comments

Comments
 (0)
Please sign in to comment.