diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-15 15:11:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-15 15:11:01 +0300 |
commit | 394b06688d1cdf181e7a144afcca70be598c3f04 (patch) | |
tree | 182960085fb510d121c4d6e0e215ea9ff11e5df5 /src/touchmanager.cpp | |
parent | dcbbdd05eee119559d3603b91c9140431b8545f7 (diff) | |
download | ManaVerse-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/touchmanager.cpp')
-rw-r--r-- | src/touchmanager.cpp | 4 |
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: |