From 394b06688d1cdf181e7a144afcca70be598c3f04 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Feb 2014 15:11:01 +0300 Subject: fix again onscreen controls position on resize/scale. --- src/touchmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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: -- cgit v1.2.3-60-g2f50