diff --git a/src/client/game.cpp b/src/client/game.cpp index 45dc2e52e..bcc092f58 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1214,7 +1214,7 @@ void Game::shutdown() g_touchscreengui->hide(); #endif - showOverlayMessage(N_("Shutting down..."), 0, 0); + showOverlayMessage(N_("Shutting down..."), 0, 100); if (clouds) clouds->drop(); diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index 8cff29d04..bbef14f37 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include +#include "filesys.h" #include "fontengine.h" #include "client.h" #include "clouds.h" @@ -52,10 +53,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #endif -#if ENABLE_GLES -#include "filesys.h" -#endif - #ifdef __ANDROID__ #include "defaultsettings.h" #endif @@ -540,11 +537,14 @@ void RenderingEngine::_draw_load_screen(const std::wstring &text, // draw progress bar if ((percent >= 0) && (percent <= 100)) { - video::ITexture *progress_img = tsrc->getTexture("progress_bar.png"); + std::string texture_path = porting::path_share + DIR_DELIM + "textures" + + DIR_DELIM + "base" + DIR_DELIM + "pack" + DIR_DELIM; + video::ITexture *progress_img = + driver->getTexture((texture_path + "progress_bar.png").c_str()); video::ITexture *progress_img_bg = - tsrc->getTexture("progress_bar_bg.png"); + driver->getTexture((texture_path + "progress_bar_bg.png").c_str()); video::ITexture *progress_img_fg = - tsrc->getTexture("progress_bar_fg.png"); + driver->getTexture((texture_path + "progress_bar_fg.png").c_str()); if (progress_img && progress_img_bg && progress_img_fg) { const core::dimension2d &img_size =