summaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r--src/guiEngine.cpp16
1 files changed, 3 insertions, 13 deletions
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<s32> 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();
}