Skip to content

Commit

Permalink
Removed redundant variable check when processing gestures.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 1, 2015
1 parent e8954d5 commit 26ecab9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/events/SDL_gesture.c
Expand Up @@ -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)+
Expand Down

0 comments on commit 26ecab9

Please sign in to comment.