mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Get rid of global guienv variable
(It can already be accessed via the renderingengine.)
This commit is contained in:
parent
45e7a80057
commit
16da954bd7
8 changed files with 29 additions and 37 deletions
|
@ -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,
|
||||
gui::IGUIEnvironment *guienv, ITextureSource *tsrc, float dtime,
|
||||
int percent, bool sky)
|
||||
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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue