From 9a970ba6bc80938b56f3ba731bf4614b40ba573d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 01:47:34 +0300 Subject: remove exit on minimisation on SDL2 on Android. --- src/client.cpp | 2 +- src/game.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index 7717d1e4b..64dd6ed53 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -3235,7 +3235,7 @@ void Client::handleActive(const SDL_Event &event) } else { // window minimization -#ifdef ANDROID +#if defined(ANDROID) && !defined(USE_SDL2) setState(STATE_EXIT); #else setIsMinimized(true); diff --git a/src/game.cpp b/src/game.cpp index ea47f3b08..40585df95 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -896,9 +896,6 @@ void Game::handleSDL2WindowEvent(const SDL_Event &event) client->setInputFocused(false); break; case SDL_WINDOWEVENT_MINIMIZED: -#ifdef ANDROID - client->setState(STATE_EXIT); -#else client->setIsMinimized(true); if (player_node && !player_node->getAway()) { @@ -906,7 +903,6 @@ void Game::handleSDL2WindowEvent(const SDL_Event &event) player_node->setHalfAway(true); } setPriority(false); -#endif break; case SDL_WINDOWEVENT_RESTORED: case SDL_WINDOWEVENT_MAXIMIZED: -- cgit v1.2.3-70-g09d2