[Commits] SDL: Removed redundant variable check when processing gestures.

libsdl.org revision control commits-owner at libsdl.org
Wed Jul 1 12:12:07 PDT 2015


details:   https://hg.libsdl.org/SDL/rev/bf1504455f2a
changeset: 9791:bf1504455f2a
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Wed Jul 01 21:10:54 2015 +0200
description:
Removed redundant variable check when processing gestures.

diffstat:

 src/events/SDL_gesture.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r d968c87f2a5d -r bf1504455f2a 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)+


More information about the commits mailing list