summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 01:47:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 01:47:34 +0300
commit9a970ba6bc80938b56f3ba731bf4614b40ba573d (patch)
treec39a480c1df465d31bd7908664c101ca5cd32fa3 /src/game.cpp
parent5a1214d380a96fa0a1eeeb07a4bfedeae982051a (diff)
downloadmanaplus-9a970ba6bc80938b56f3ba731bf4614b40ba573d.tar.gz
manaplus-9a970ba6bc80938b56f3ba731bf4614b40ba573d.tar.bz2
manaplus-9a970ba6bc80938b56f3ba731bf4614b40ba573d.tar.xz
manaplus-9a970ba6bc80938b56f3ba731bf4614b40ba573d.zip
remove exit on minimisation on SDL2 on Android.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 0 insertions, 4 deletions
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: