Removed redundant variable check when processing gestures.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 01 Jul 2015 21:10:54 +0200
changeset 9791 bf1504455f2a
parent 9790 d968c87f2a5d
child 9792 0569d87c68fc
Removed redundant variable check when processing gestures.
src/events/SDL_gesture.c
--- a/src/events/SDL_gesture.c	Tue Jun 30 19:30:02 2015 -0700
+++ b/src/events/SDL_gesture.c	Wed Jul 01 21:10:54 2015 +0200
@@ -649,8 +649,7 @@
             break;
             pressure? */
         }
-
-        if (event->type == SDL_FINGERDOWN) {
+        else if (event->type == SDL_FINGERDOWN) {
 
             inTouch->numDownFingers++;
             inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+