diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-10 12:10:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-10 12:10:17 +0300 |
commit | 768a7e7499a95bb3ce14600e8050bcbbaaeed31f (patch) | |
tree | d2360b4606ccec34de01cf88431e2e4dcc85f567 /src/client.cpp | |
parent | 6f04e44cdc1dd00107c62418173a1ac71f4bd6b9 (diff) | |
download | mv-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.gz mv-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.bz2 mv-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.xz mv-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.zip |
Fix help button before login to game.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 7 |
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); |