Android: Resize jump and sneak buttons' touch target (#7498)
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Sat, 30 Jun 2018 21:33:14 +0000 (04:33 +0700)
committerParamat <paramat@users.noreply.github.com>
Sat, 30 Jun 2018 21:33:14 +0000 (22:33 +0100)
src/gui/touchscreengui.cpp
textures/base/pack/down.png
textures/base/pack/jump_btn.png

index dfd06c21b311aedb637585f6133d9fe9d9f6d300..13a6a079909dce8e605d24fca35555f46d85e7cf 100644 (file)
@@ -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
index b85717a7f48f4f6e9b8d79a6a3571cc5da9f485a..2bbfffdb746d86a83e738773f209a85f7e550b0c 100644 (file)
Binary files a/textures/base/pack/down.png and b/textures/base/pack/down.png differ
index 663055020c761c1552300edfc2cd8ebcdfd8d49f..3873b50c330ae2d17692725987679b5333fffd76 100755 (executable)
Binary files a/textures/base/pack/jump_btn.png and b/textures/base/pack/jump_btn.png differ