summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 34606172c..227b21db5 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1288,7 +1288,12 @@ bool Game::createClient(const std::string &playername,
return false;
bool could_connect, connect_aborted;
-
+#ifdef HAVE_TOUCHSCREENGUI
+ if (g_touchscreengui) {
+ g_touchscreengui->init(texture_src);
+ g_touchscreengui->hide();
+ }
+#endif
if (!connectToServer(playername, password, address, port,
&could_connect, &connect_aborted))
return false;
@@ -1414,7 +1419,7 @@ bool Game::initGui()
#ifdef HAVE_TOUCHSCREENGUI
if (g_touchscreengui)
- g_touchscreengui->init(texture_src);
+ g_touchscreengui->show();
#endif