Skip to content

Commit 8a1a9fd

Browse files
lisacvukZeno-
authored andcommittedNov 11, 2016
Fixed tooltips not resizing with \n (#4766)
* Fixed tooltips not resizing with \n * Fixed it for 1.8.4 too. * Fixed not working with Freetype disabled. * Modified it to use Zeno-'s solution.
1 parent b98f98b commit 8a1a9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/guiFormSpecMenu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase,
23142314
this->bringToFront(m_tooltip_element);
23152315
setStaticText(m_tooltip_element, tooltip_text.c_str());
23162316
s32 tooltip_width = m_tooltip_element->getTextWidth() + m_btn_height;
2317-
#if IRRLICHT_VERSION_MAJOR <= 1 && IRRLICHT_VERSION_MINOR <= 8 && IRRLICHT_VERSION_REVISION < 2
2317+
#if (IRRLICHT_VERSION_MAJOR <= 1 && IRRLICHT_VERSION_MINOR <= 8 && IRRLICHT_VERSION_REVISION < 2) || USE_FREETYPE == 1
23182318
s32 tooltip_height = m_tooltip_element->getTextHeight() * tt_rows.size() + 5;
23192319
#else
23202320
s32 tooltip_height = m_tooltip_element->getTextHeight() + 5;

0 commit comments

Comments
 (0)
Please sign in to comment.