Commit 26ecab90105c59c089b80a388d5b7eb468b186af

Philipp Wiesemann 2015-07-01T21:10:54

Removed redundant variable check when processing gestures.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c
index 9e2c9ce..b7980ed 100644
--- a/src/events/SDL_gesture.c
+++ b/src/events/SDL_gesture.c
@@ -649,8 +649,7 @@ void SDL_GestureProcessEvent(SDL_Event* event)
             break;
             pressure? */
         }
-
-        if (event->type == SDL_FINGERDOWN) {
+        else if (event->type == SDL_FINGERDOWN) {
 
             inTouch->numDownFingers++;
             inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+