Skip to content

Commit

Permalink
Touchscreen: Make server-sent overrides of button textures work (#14145)
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Dec 23, 2023
1 parent e0d4a9d commit 46c930c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/client/game.cpp
Expand Up @@ -1489,12 +1489,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;

Expand Down Expand Up @@ -1603,10 +1597,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;
Expand Down

0 comments on commit 46c930c

Please sign in to comment.