aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2015-02-18 11:45:23 +0200
committerPerttu Ahola <celeron55@gmail.com>2015-02-18 12:33:40 +0200
commit4d744cf87ad1cd108d125c58559cef4316e80a70 (patch)
tree569a35adacd5a2b54306d4183931c868849be290 /builtin/mainmenu
parent49f84b76bcacb6de9544ebaf0a05c9f76ccf33b1 (diff)
downloadminetest-4d744cf87ad1cd108d125c58559cef4316e80a70.tar.gz
minetest-4d744cf87ad1cd108d125c58559cef4316e80a70.tar.bz2
minetest-4d744cf87ad1cd108d125c58559cef4316e80a70.zip
Use fixed size for builtin menus on non-android platforms
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua
index dfaa04d3c..d008ec8b0 100644
--- a/builtin/mainmenu/init.lua
+++ b/builtin/mainmenu/init.lua
@@ -139,7 +139,11 @@ 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 PLATFORM ~= "Android" then
+ tv_main:set_fixed_size(true)
+ else
+ tv_main:set_fixed_size(false)
+ end
if not (PLATFORM == "Android") then
tv_main:set_tab(core.setting_get("maintab_LAST"))