src/events/SDL_gesture.c
changeset 6068 c0a928f55a19
parent 6067 9a8faef6fdbe
child 6069 fbb37897c788
     1.1 --- a/src/events/SDL_gesture.c	Thu Oct 27 22:52:03 2011 +0200
     1.2 +++ b/src/events/SDL_gesture.c	Thu Oct 27 22:53:28 2011 +0200
     1.3 @@ -227,7 +227,8 @@
     1.4  
     1.5          if (touchId >= 0) {
     1.6              //printf("Adding loaded gesture to 1 touch\n");
     1.7 -            if (SDL_AddDollarGesture(touch,templ.path)) loaded++;
     1.8 +            if (SDL_AddDollarGesture(touch, templ.path) >= 0)
     1.9 +                loaded++;
    1.10          }
    1.11          else {
    1.12              //printf("Adding to: %i touches\n",SDL_numGestureTouches);