diff options
author | stujones11 <stujones111@gmail.com> | 2018-11-18 10:31:19 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-11-18 11:31:19 +0100 |
commit | 3b112889892f6652d4e80d97e45131f179b1fbe4 (patch) | |
tree | 98033eb2cab0639aefc00244411dad94cb9d4c10 /builtin | |
parent | e5a37543cc7932f6252a086b4b8619b5dde9ae5a (diff) | |
download | minetest-3b112889892f6652d4e80d97e45131f179b1fbe4.tar.gz minetest-3b112889892f6652d4e80d97e45131f179b1fbe4.tar.bz2 minetest-3b112889892f6652d4e80d97e45131f179b1fbe4.zip |
Android: Improve UI scaling on smaller high-density displays (#7834)
* Android: Improve UI scaling on smaller high-density displays
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 11611919e..7b2cee6ac 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -237,9 +237,10 @@ local function formspec(tabview, name, tabdata) if core.settings:get("touchscreen_threshold") ~= nil then tab_string = tab_string .. - "label[4.3,4.1;" .. fgettext("Touchthreshold (px)") .. "]" .. - "dropdown[3.85,4.55;3.85;dd_touchthreshold;0,10,20,30,40,50;" .. - ((tonumber(core.settings:get("touchscreen_threshold")) / 10) + 1) .. "]" + "label[4.3,4.2;" .. fgettext("Touchthreshold: (px)") .. "]" .. + "dropdown[4.25,4.65;3.5;dd_touchthreshold;0,10,20,30,40,50;" .. + ((tonumber(core.settings:get("touchscreen_threshold")) / 10) + 1) .. + "]box[4.0,4.5;3.75,1.0;#999999]" end if shaders_enabled then |