aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Robinson <robinsonvincent89@gmail.com>2022-01-04 17:47:32 -0800
committerVincent Robinson <robinsonvincent89@gmail.com>2022-01-04 17:47:32 -0800
commite39b159845871fbb1634570bd4af999c1c72e6fa (patch)
treefff5d1cfe38c2d724e7f2194179d649bfd0536b8 /src
parentd33ab97434633683196cee2c4593160736899124 (diff)
downloadminetest-e39b159845871fbb1634570bd4af999c1c72e6fa.tar.gz
minetest-e39b159845871fbb1634570bd4af999c1c72e6fa.tar.bz2
minetest-e39b159845871fbb1634570bd4af999c1c72e6fa.zip
Base formspec coordinate size on padded screensize
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 2cf9d9942..770a50bd9 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -3265,7 +3265,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
((15.0 / 13.0) * (0.85 + mydata.invsize.Y));
}
- s32 min_screen_dim = std::min(mydata.screensize.X, mydata.screensize.Y);
+ s32 min_screen_dim = std::min(padded_screensize.X, padded_screensize.Y);
#ifdef HAVE_TOUCHSCREENGUI
// In Android, the preferred imgsize should be larger to accommodate the