From f54e9d8ac4ce698fb592e470cde0a30f61421972 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Sun, 17 Jan 2016 22:56:42 +0100 Subject: [PATCH] Rename variable to match others. --- UI/DisplayLayoutScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/DisplayLayoutScreen.cpp b/UI/DisplayLayoutScreen.cpp index 46d16b01ad..f9e00ca937 100644 --- a/UI/DisplayLayoutScreen.cpp +++ b/UI/DisplayLayoutScreen.cpp @@ -80,15 +80,15 @@ bool DisplayLayoutScreen::touch(const TouchInput &touch) { if (mode == 0) { const Bounds &bounds = picked_->GetBounds(); - int mintouchX = screen_bounds.w / 4; - int maxTouchX = screen_bounds.w - mintouchX; + int minTouchX = screen_bounds.w / 4; + int maxTouchX = screen_bounds.w - minTouchX; int minTouchY = screen_bounds.h / 4; int maxTouchY = screen_bounds.h - minTouchY; int newX = bounds.centerX(), newY = bounds.centerY(); // we have to handle x and y separately since even if x is blocked, y may not be. - if (touchX > mintouchX && touchX < maxTouchX) { + if (touchX > minTouchX && touchX < maxTouchX) { // if the leftmost point of the control is ahead of the margin, // move it. Otherwise, don't. newX = touchX;