Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fr
diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua
index dfaa04d..65eaae0 100644
--- a/builtin/mainmenu/init.lua
+++ b/builtin/mainmenu/init.lua
@@ -139,9 +139,10 @@ local function init_globals()
tv_main:add(tab_credits)
tv_main:set_global_event_handler(main_event_handler)
- tv_main:set_fixed_size(false)
if not (PLATFORM == "Android") then
+ tv_main:set_fixed_size(false)
+ else
tv_main:set_tab(core.setting_get("maintab_LAST"))
end
ui.set_default("maintab")
diff --git a/src/game.cpp b/src/game.cpp
index 00931a7..b292ad1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1024,7 +1024,11 @@ static inline void create_formspec_menu(GUIFormSpecMenu **cur_formspec,
}
}
+#ifdef __ANDROID__
#define SIZE_TAG "size[11,5.5]"
+#else
+#define SIZE_TAG "size[11,5.5,true]"
+#endif
static void show_chat_menu(GUIFormSpecMenu **cur_formspec,
InventoryManager *invmgr, IGameDef *gamedef,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.