diff --git a/src/client/game.cpp b/src/client/game.cpp index 38fd1ddbf..d9b0088fc 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1428,12 +1428,6 @@ bool Game::createClient(const GameStartData &start_data) return false; bool could_connect, connect_aborted; -#ifdef HAVE_TOUCHSCREENGUI - if (g_touchscreengui) { - g_touchscreengui->init(texture_src); - g_touchscreengui->hide(); - } -#endif if (!connectToServer(start_data, &could_connect, &connect_aborted)) return false; @@ -1542,10 +1536,8 @@ bool Game::initGui() -1, chat_backend, client, &g_menumgr); #ifdef HAVE_TOUCHSCREENGUI - if (g_touchscreengui) - g_touchscreengui->show(); - + g_touchscreengui->init(texture_src); #endif return true;