mirror of
https://github.com/minetest/minetest.git
synced 2025-07-05 01:10:22 +02:00
Revert "Get rid of global guienv variable"
This reverts commit 16da954bd7
.
This commit is contained in:
@ -226,9 +226,9 @@ bool RenderingEngine::setWindowIcon()
|
||||
Additionally, a progressbar can be drawn when percent is set between 0 and 100.
|
||||
*/
|
||||
void RenderingEngine::draw_load_screen(const std::wstring &text,
|
||||
ITextureSource *tsrc, float dtime, int percent, bool sky)
|
||||
gui::IGUIEnvironment *guienv, ITextureSource *tsrc, float dtime,
|
||||
int percent, bool sky)
|
||||
{
|
||||
gui::IGUIEnvironment *guienv = get_gui_env();
|
||||
v2u32 screensize = getWindowSize();
|
||||
|
||||
v2s32 textsize(g_fontengine->getTextWidth(text), g_fontengine->getLineHeight());
|
||||
|
Reference in New Issue
Block a user