Fix #2536
This commit is contained in:
@@ -1415,6 +1415,12 @@ namespace GUIEngine
|
||||
x = ICON_MARGIN;
|
||||
}
|
||||
}
|
||||
// This will avoid no response in windows, also allow showing loading
|
||||
// icon in apple device, because apple device only update render
|
||||
// buffer if you poll the mainloop
|
||||
g_device->setEventReceiver(NULL);
|
||||
g_device->run();
|
||||
g_device->setEventReceiver(EventHandler::get());
|
||||
#endif
|
||||
} // renderLoading
|
||||
|
||||
@@ -1430,13 +1436,6 @@ namespace GUIEngine
|
||||
->beginScene(true, true, video::SColor(255,100,101,140));
|
||||
renderLoading(false);
|
||||
g_device->getVideoDriver()->endScene();
|
||||
#ifdef IOS_STK
|
||||
// Apple will only update render buffer if you poll the event
|
||||
// loop, we do this only in iOS so you don't get esc event when
|
||||
// you press esc button in other OS, this will allow showing
|
||||
// loading icon in iOS
|
||||
g_device->run();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1790,6 +1790,8 @@ void initRest()
|
||||
GUIEngine::setSkin(NULL);
|
||||
|
||||
GUIEngine::init(device, driver, StateManager::get());
|
||||
|
||||
GUIEngine::renderLoading();
|
||||
input_manager = new InputManager();
|
||||
// Get into menu mode initially.
|
||||
input_manager->setMode(InputManager::MENU);
|
||||
|
||||
Reference in New Issue
Block a user