mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Touchscreen: Make server-sent overrides of button textures work (#14145)
This commit is contained in:
parent
0d372250c1
commit
fe4f89f3fa
@ -1428,12 +1428,6 @@ bool Game::createClient(const GameStartData &start_data)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool could_connect, connect_aborted;
|
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))
|
if (!connectToServer(start_data, &could_connect, &connect_aborted))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -1542,10 +1536,8 @@ bool Game::initGui()
|
|||||||
-1, chat_backend, client, &g_menumgr);
|
-1, chat_backend, client, &g_menumgr);
|
||||||
|
|
||||||
#ifdef HAVE_TOUCHSCREENGUI
|
#ifdef HAVE_TOUCHSCREENGUI
|
||||||
|
|
||||||
if (g_touchscreengui)
|
if (g_touchscreengui)
|
||||||
g_touchscreengui->show();
|
g_touchscreengui->init(texture_src);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user