summaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorXunto <orlovv@herzen.spb.ru>2016-04-21 23:26:31 +0300
committerCraig Robbins <kde.psych@gmail.com>2016-04-23 21:12:53 +1000
commit21079cc8ebae0bf694c1903c07bf3e1517feab99 (patch)
treea05b57f9433badc4592e3f3161d3ef9e88e0affe /src/guiFormSpecMenu.cpp
parent2177f3090e6bb8037779a5b518f193a03094797f (diff)
downloadminetest-21079cc8ebae0bf694c1903c07bf3e1517feab99.tar.gz
minetest-21079cc8ebae0bf694c1903c07bf3e1517feab99.tar.bz2
minetest-21079cc8ebae0bf694c1903c07bf3e1517feab99.zip
Fix bug that was leading to oversized tooltips containing multiline text when it have multiple lines
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 6492eb9d9..1a6ee91cd 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -2253,7 +2253,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase,
this->bringToFront(m_tooltip_element);
m_tooltip_element->setText(utf8_to_wide(tooltip_text).c_str());
s32 tooltip_width = m_tooltip_element->getTextWidth() + m_btn_height;
- s32 tooltip_height = m_tooltip_element->getTextHeight() * tt_rows.size() + 5;
+ s32 tooltip_height = m_tooltip_element->getTextHeight() + 5;
v2u32 screenSize = driver->getScreenSize();
int tooltip_offset_x = m_btn_height;
int tooltip_offset_y = m_btn_height;