mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Remove top left minetest watermark
Move version information into the window caption. On popular player request. Fixes #4209.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user