1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

Remove top left minetest watermark

Move version information into the window caption.

On popular player request.

Fixes #4209.
This commit is contained in:
est31 2016-07-03 19:36:51 +02:00
parent 3c63c3044d
commit e1aa98fe07
4 changed files with 13 additions and 23 deletions

View file

@ -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();
}