diff options
-rw-r--r-- | xbmc/input/touch/generic/GenericTouchPinchDetector.cpp | 6 | ||||
-rw-r--r-- | xbmc/input/touch/generic/GenericTouchRotateDetector.cpp | 8 | ||||
-rw-r--r-- | xbmc/input/touch/generic/GenericTouchSwipeDetector.cpp | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/xbmc/input/touch/generic/GenericTouchPinchDetector.cpp b/xbmc/input/touch/generic/GenericTouchPinchDetector.cpp index 8c3d004b38..b3ad1dae96 100644 --- a/xbmc/input/touch/generic/GenericTouchPinchDetector.cpp +++ b/xbmc/input/touch/generic/GenericTouchPinchDetector.cpp @@ -22,7 +22,7 @@ bool CGenericTouchPinchDetector::OnTouchDown(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) @@ -34,7 +34,7 @@ bool CGenericTouchPinchDetector::OnTouchDown(unsigned int index, const Pointer & bool CGenericTouchPinchDetector::OnTouchUp(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) @@ -58,7 +58,7 @@ bool CGenericTouchPinchDetector::OnTouchUp(unsigned int index, const Pointer &po bool CGenericTouchPinchDetector::OnTouchMove(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) diff --git a/xbmc/input/touch/generic/GenericTouchRotateDetector.cpp b/xbmc/input/touch/generic/GenericTouchRotateDetector.cpp index 6462e06c0d..a6b52910aa 100644 --- a/xbmc/input/touch/generic/GenericTouchRotateDetector.cpp +++ b/xbmc/input/touch/generic/GenericTouchRotateDetector.cpp @@ -33,7 +33,7 @@ CGenericTouchRotateDetector::CGenericTouchRotateDetector(ITouchActionHandler *ha bool CGenericTouchRotateDetector::OnTouchDown(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) @@ -46,7 +46,7 @@ bool CGenericTouchRotateDetector::OnTouchDown(unsigned int index, const Pointer bool CGenericTouchRotateDetector::OnTouchUp(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) @@ -70,7 +70,7 @@ bool CGenericTouchRotateDetector::OnTouchUp(unsigned int index, const Pointer &p bool CGenericTouchRotateDetector::OnTouchMove(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) @@ -117,7 +117,7 @@ bool CGenericTouchRotateDetector::OnTouchMove(unsigned int index, const Pointer bool CGenericTouchRotateDetector::OnTouchUpdate(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) diff --git a/xbmc/input/touch/generic/GenericTouchSwipeDetector.cpp b/xbmc/input/touch/generic/GenericTouchSwipeDetector.cpp index 2b792724c3..dda30e013b 100644 --- a/xbmc/input/touch/generic/GenericTouchSwipeDetector.cpp +++ b/xbmc/input/touch/generic/GenericTouchSwipeDetector.cpp @@ -45,7 +45,7 @@ CGenericTouchSwipeDetector::CGenericTouchSwipeDetector(ITouchActionHandler *hand bool CGenericTouchSwipeDetector::OnTouchDown(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; m_size += 1; @@ -62,7 +62,7 @@ bool CGenericTouchSwipeDetector::OnTouchDown(unsigned int index, const Pointer & bool CGenericTouchSwipeDetector::OnTouchUp(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; m_size -= 1; @@ -91,7 +91,7 @@ bool CGenericTouchSwipeDetector::OnTouchUp(unsigned int index, const Pointer &po bool CGenericTouchSwipeDetector::OnTouchMove(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; // only handle swipes of moved pointers @@ -173,7 +173,7 @@ bool CGenericTouchSwipeDetector::OnTouchMove(unsigned int index, const Pointer & bool CGenericTouchSwipeDetector::OnTouchUpdate(unsigned int index, const Pointer &pointer) { - if (index < 0 || index >= TOUCH_MAX_POINTERS) + if (index >= TOUCH_MAX_POINTERS) return false; if (m_done) |