summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-17 19:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-17 19:12:35 +0300
commit93d2e433330dc361b5ca7013ba4b05c3c361b7d8 (patch)
tree7a37587d72486d677349e10da0dce77a9bb2a0d3
parent4364a3fcae6b7994f3ee92811ce8d000dcb785ce (diff)
downloadmanaplus-93d2e433330dc361b5ca7013ba4b05c3c361b7d8.tar.gz
manaplus-93d2e433330dc361b5ca7013ba4b05c3c361b7d8.tar.bz2
manaplus-93d2e433330dc361b5ca7013ba4b05c3c361b7d8.tar.xz
manaplus-93d2e433330dc361b5ca7013ba4b05c3c361b7d8.zip
fix about button moving on window resize.
-rw-r--r--src/client.cpp3
-rw-r--r--src/localconsts.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 24a10574e..afb4c236b 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2837,6 +2837,9 @@ void Client::resizeVideo(int actualWidth,
x -= mThemesButton->getWidth() + mButtonSpacing;
mThemesButton->setPosition(x, mButtonPadding);
+ x -= mAboutButton->getWidth() + mButtonSpacing;
+ mAboutButton->setPosition(x, mButtonPadding);
+
x -= mHelpButton->getWidth() + mButtonSpacing;
mHelpButton->setPosition(x, mButtonPadding);
#ifdef ANDROID
diff --git a/src/localconsts.h b/src/localconsts.h
index f9f9f4ba0..92c36d92a 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -95,7 +95,7 @@
// #define ANDROID_LOG 1
// profiler
-#define USE_PROFILER 1
+// #define USE_PROFILER 1
// draw calls
// #define DEBUG_DRAW_CALLS 1