1
0
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:
Desour
2023-08-22 19:20:49 +02:00
committed by DS
parent f98726c516
commit 7e4dccb3b5
8 changed files with 37 additions and 29 deletions

View File

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