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

View File

@ -649,8 +649,7 @@ void SDL_GestureProcessEvent(SDL_Event* event)
break; break;
pressure? */ pressure? */
} }
else if (event->type == SDL_FINGERDOWN) {
if (event->type == SDL_FINGERDOWN) {
inTouch->numDownFingers++; inTouch->numDownFingers++;
inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+ inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+