Removed redundant variable check when processing gestures.

This commit is contained in:
Philipp Wiesemann 2015-07-01 21:10:54 +02:00
parent e8954d5d8c
commit 26ecab9010
1 changed files with 1 additions and 2 deletions

View File

@ -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)+