From e1aa98fe077faecb14a9820f3861bb1c82b5db6e Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 3 Jul 2016 19:36:51 +0200 Subject: Remove top left minetest watermark Move version information into the window caption. On popular player request. Fixes #4209. --- src/guiEngine.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/guiEngine.cpp') diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp index b9d796ccb..e15533dcd 100644 --- a/src/guiEngine.cpp +++ b/src/guiEngine.cpp @@ -174,8 +174,7 @@ GUIEngine::GUIEngine( irr::IrrlichtDevice* dev, m_sound_manager = &dummySoundManager; //create topleft header - m_toplefttext = utf8_to_wide(std::string(PROJECT_NAME_C " ") + - g_version_hash); + m_toplefttext = L""; core::rect rect(0, 0, g_fontengine->getTextWidth(m_toplefttext.c_str()), g_fontengine->getTextHeight()); @@ -571,18 +570,9 @@ bool GUIEngine::downloadFile(std::string url, std::string target) } /******************************************************************************/ -void GUIEngine::setTopleftText(std::string append) +void GUIEngine::setTopleftText(const std::string &text) { - std::wstring toset = utf8_to_wide(std::string(PROJECT_NAME_C " ") + - g_version_hash); - - if (append != "") - { - toset += L" / "; - toset += utf8_to_wide(append); - } - - m_toplefttext = toset; + m_toplefttext = utf8_to_wide(text); updateTopLeftTextSize(); } -- cgit v1.2.3