diff --git a/src/drawscene.cpp b/src/drawscene.cpp index 44a746be..645e2fa2 100644 --- a/src/drawscene.cpp +++ b/src/drawscene.cpp @@ -595,6 +595,11 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device, gui::IGUIEnvironment* guienv, ITextureSource *tsrc, float dtime, int percent, bool clouds) { +#ifdef __IOS__ + if (device->isWindowMinimized()) + return; +#endif + video::IVideoDriver* driver = device->getVideoDriver(); v2u32 screensize = porting::getWindowSize(); diff --git a/src/game.cpp b/src/game.cpp index 4c18f22a..c55db17a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -4171,6 +4171,11 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime, time_of_day_smooth = time_of_day_smooth * (1.0 - todsm) + time_of_day * todsm; +#ifdef __IOS__ + if (device->isWindowMinimized()) + return; +#endif + runData.time_of_day = time_of_day; runData.time_of_day_smooth = time_of_day_smooth; diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp index a680e3db..870494bf 100644 --- a/src/guiEngine.cpp +++ b/src/guiEngine.cpp @@ -268,6 +268,11 @@ bool GUIEngine::loadMainMenuScript() /******************************************************************************/ void GUIEngine::run() { +#ifdef __IOS__ + if (m_device->isWindowMinimized()) + return; +#endif + // Always create clouds because they may or may not be // needed based on the game selected // NO!!!