aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-05 19:39:06 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commit9146c6a50fdf81196bab3d517b8313fb4fa3bc71 (patch)
treedad709901c6840812401dc6f0db1d356a4ef4866 /src/gui
parentf40f4143dfbbaadaabcdbd5243412d389a9d29fb (diff)
downloadminetest-9146c6a50fdf81196bab3d517b8313fb4fa3bc71.tar.gz
minetest-9146c6a50fdf81196bab3d517b8313fb4fa3bc71.tar.bz2
minetest-9146c6a50fdf81196bab3d517b8313fb4fa3bc71.zip
Don't recalculate statustext initial color everytime & review fixes
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 5926cca3a..6ca4a2e16 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -2026,7 +2026,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
assert(!m_tooltip_element);
// Note: parent != this so that the tooltip isn't clipped by the menu rectangle
m_tooltip_element = gui::StaticText::add(Environment, L"",
- core::rect<s32>(0,0,110,18));
+ core::rect<s32>(0, 0, 110, 18));
m_tooltip_element->enableOverrideColor(true);
m_tooltip_element->setBackgroundColor(m_default_tooltip_bgcolor);
m_tooltip_element->setDrawBackground(true);