aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>2018-07-01 04:33:14 +0700
committerParamat <paramat@users.noreply.github.com>2018-06-30 22:33:14 +0100
commitad3d1d20d10ac193d6ef9d7967571d443c11b9af (patch)
tree12831082015ba525298373b5ffe81d1ef34a2da5
parenteef62c82a2e58700fc1216b0b8c03e421bc77995 (diff)
downloadminetest-ad3d1d20d10ac193d6ef9d7967571d443c11b9af.tar.gz
minetest-ad3d1d20d10ac193d6ef9d7967571d443c11b9af.tar.bz2
minetest-ad3d1d20d10ac193d6ef9d7967571d443c11b9af.zip
Android: Resize jump and sneak buttons' touch target (#7498)
-rw-r--r--src/gui/touchscreengui.cpp4
-rw-r--r--textures/base/pack/down.pngbin1328 -> 1554 bytes
-rwxr-xr-xtextures/base/pack/jump_btn.pngbin396 -> 1073 bytes
3 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/touchscreengui.cpp b/src/gui/touchscreengui.cpp
index dfd06c21b..13a6a0799 100644
--- a/src/gui/touchscreengui.cpp
+++ b/src/gui/touchscreengui.cpp
@@ -541,7 +541,7 @@ void TouchScreenGUI::init(ISimpleTextureSource *tsrc)
rect<s32>(m_screensize.X - (1.75 * button_size),
m_screensize.Y - button_size,
m_screensize.X - (0.25 * button_size),
- m_screensize.Y - (0.5 * button_size)),
+ m_screensize.Y),
L"x", false);
// init crunch button
@@ -549,7 +549,7 @@ void TouchScreenGUI::init(ISimpleTextureSource *tsrc)
rect<s32>(m_screensize.X - (3.25 * button_size),
m_screensize.Y - button_size,
m_screensize.X - (1.75 * button_size),
- m_screensize.Y - (0.5 * button_size)),
+ m_screensize.Y),
L"H", false);
// init zoom button
diff --git a/textures/base/pack/down.png b/textures/base/pack/down.png
index b85717a7f..2bbfffdb7 100644
--- a/textures/base/pack/down.png
+++ b/textures/base/pack/down.png
Binary files differ
diff --git a/textures/base/pack/jump_btn.png b/textures/base/pack/jump_btn.png
index 663055020..3873b50c3 100755
--- a/textures/base/pack/jump_btn.png
+++ b/textures/base/pack/jump_btn.png
Binary files differ