aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2016-04-24 15:44:10 +0200
committerparamat <mat.gregory@virginmedia.com>2016-04-28 07:16:58 +0100
commit30083d1e0070d0f86337a57ea36b6bba7fd52572 (patch)
treedabbf2ed5272d8cbebee7eeac7924c10a303c5fd /src
parent6278da296be13c1229bfce45c476119a1db9477f (diff)
downloadminetest-30083d1e0070d0f86337a57ea36b6bba7fd52572.tar.gz
minetest-30083d1e0070d0f86337a57ea36b6bba7fd52572.tar.bz2
minetest-30083d1e0070d0f86337a57ea36b6bba7fd52572.zip
Mainmenu: Standardize the menu button order and sizes
Diffstat (limited to 'src')
-rw-r--r--src/guiKeyChangeMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiKeyChangeMenu.cpp b/src/guiKeyChangeMenu.cpp
index bb878d6ef..b05818256 100644
--- a/src/guiKeyChangeMenu.cpp
+++ b/src/guiKeyChangeMenu.cpp
@@ -187,7 +187,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
{
core::rect < s32 > rect(0, 0, 100, 30);
- rect += topleft + v2s32(size.X - 100 - 20, size.Y - 40);
+ rect += topleft + v2s32(size.X / 2 - 105, size.Y - 40);
const wchar_t *text = wgettext("Save");
Environment->addButton(rect, this, GUI_ID_BACK_BUTTON,
text);
@@ -195,7 +195,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
}
{
core::rect < s32 > rect(0, 0, 100, 30);
- rect += topleft + v2s32(size.X - 100 - 20 - 100 - 20, size.Y - 40);
+ rect += topleft + v2s32(size.X / 2 + 5, size.Y - 40);
const wchar_t *text = wgettext("Cancel");
Environment->addButton(rect, this, GUI_ID_ABORT_BUTTON,
text);