summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-15 15:11:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-15 15:11:01 +0300
commit394b06688d1cdf181e7a144afcca70be598c3f04 (patch)
tree182960085fb510d121c4d6e0e215ea9ff11e5df5 /src
parentdcbbdd05eee119559d3603b91c9140431b8545f7 (diff)
downloadManaVerse-394b06688d1cdf181e7a144afcca70be598c3f04.tar.gz
ManaVerse-394b06688d1cdf181e7a144afcca70be598c3f04.tar.bz2
ManaVerse-394b06688d1cdf181e7a144afcca70be598c3f04.tar.xz
ManaVerse-394b06688d1cdf181e7a144afcca70be598c3f04.zip
fix again onscreen controls position on resize/scale.
Diffstat (limited to 'src')
-rw-r--r--src/touchmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp
index c036f2594..b7b926383 100644
--- a/src/touchmanager.cpp
+++ b/src/touchmanager.cpp
@@ -327,8 +327,8 @@ void TouchManager::resize(const int width, const int height)
case LEFT:
if (height != maxHeight)
{
- item->y += (height - item->height) / 2;
- item->rect.y += (height - item->rect.y) / 2;
+ item->y = (height - item->height) / 2;
+ item->rect.y = (height - item->rect.y) / 2;
}
break;
case RIGHT: