summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-10 12:10:17 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-10 12:10:17 +0300
commit768a7e7499a95bb3ce14600e8050bcbbaaeed31f (patch)
treed2360b4606ccec34de01cf88431e2e4dcc85f567 /src/client.cpp
parent6f04e44cdc1dd00107c62418173a1ac71f4bd6b9 (diff)
downloadmanaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.gz
manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.bz2
manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.xz
manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.zip
Fix help button before login to game.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 36651b01e..39c7beb52 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1109,7 +1109,7 @@ int Client::gameExec()
ADDBUTTON(mThemesButton, new Button(mDesktop,
// TRANSLATORS: theme tab quick button
_("Theme"), "Themes", this))
- ADDBUTTON(mThemesButton, new Button(mDesktop,
+ ADDBUTTON(mHelpButton, new Button(mDesktop,
// TRANSLATORS: theme tab quick button
_("Help"), "help", this))
#ifdef ANDROID
@@ -1527,6 +1527,8 @@ int Client::gameExec()
mVideoButton = nullptr;
delete mThemesButton;
mThemesButton = nullptr;
+ delete mHelpButton;
+ mHelpButton = nullptr;
delete mPerfomanceButton;
mPerfomanceButton = nullptr;
delete mDesktop;
@@ -2756,6 +2758,9 @@ void Client::resizeVideo(int width, int height, const bool always)
x -= mThemesButton->getWidth() + mButtonSpacing;
mThemesButton->setPosition(x, mButtonPadding);
+
+ x -= mHelpButton->getWidth() + mButtonSpacing;
+ mHelpButton->setPosition(x, mButtonPadding);
#ifdef ANDROID
x -= mCloseButton->getWidth() + mButtonSpacing;
mCloseButton->setPosition(x, mButtonPadding);