diff options
Diffstat (limited to 'src/gui/guiEngine.cpp')
-rw-r--r-- | src/gui/guiEngine.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/guiEngine.cpp b/src/gui/guiEngine.cpp index e9b4e54c1..3f9bcd888 100644 --- a/src/gui/guiEngine.cpp +++ b/src/gui/guiEngine.cpp @@ -149,9 +149,8 @@ GUIEngine::GUIEngine(JoystickController *joystick, g_fontengine->getTextHeight()); rect += v2s32(4, 0); - m_irr_toplefttext = - addStaticText(RenderingEngine::get_gui_env(), m_toplefttext, - rect, false, true, 0, -1); + m_irr_toplefttext = gui::StaticText::add(RenderingEngine::get_gui_env(), + m_toplefttext, rect, false, true, 0, -1); //create formspecsource m_formspecgui = new FormspecFormSource(""); @@ -560,9 +559,8 @@ void GUIEngine::updateTopLeftTextSize() rect += v2s32(4, 0); m_irr_toplefttext->remove(); - m_irr_toplefttext = - addStaticText(RenderingEngine::get_gui_env(), m_toplefttext, - rect, false, true, 0, -1); + m_irr_toplefttext = gui::StaticText::add(RenderingEngine::get_gui_env(), + m_toplefttext, rect, false, true, 0, -1); } /******************************************************************************/ |