1
0

Disable progress bar texture overrides

This commit is contained in:
Maksym H 2022-11-14 00:58:04 +01:00
parent b7a313a574
commit 75a5c0876e
2 changed files with 8 additions and 8 deletions

View File

@ -1214,7 +1214,7 @@ void Game::shutdown()
g_touchscreengui->hide(); g_touchscreengui->hide();
#endif #endif
showOverlayMessage(N_("Shutting down..."), 0, 0); showOverlayMessage(N_("Shutting down..."), 0, 100);
if (clouds) if (clouds)
clouds->drop(); clouds->drop();

View File

@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <IrrlichtDevice.h> #include <IrrlichtDevice.h>
#include <irrlicht.h> #include <irrlicht.h>
#include "filesys.h"
#include "fontengine.h" #include "fontengine.h"
#include "client.h" #include "client.h"
#include "clouds.h" #include "clouds.h"
@ -52,10 +53,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <winuser.h> #include <winuser.h>
#endif #endif
#if ENABLE_GLES
#include "filesys.h"
#endif
#ifdef __ANDROID__ #ifdef __ANDROID__
#include "defaultsettings.h" #include "defaultsettings.h"
#endif #endif
@ -540,11 +537,14 @@ void RenderingEngine::_draw_load_screen(const std::wstring &text,
// draw progress bar // draw progress bar
if ((percent >= 0) && (percent <= 100)) { 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 = 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 = 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) { if (progress_img && progress_img_bg && progress_img_fg) {
const core::dimension2d<u32> &img_size = const core::dimension2d<u32> &img_size =