src/events/SDL_gesture.c
changeset 8726 9a5a5808aa14
parent 8705 fee2f7e242a1
child 8775 047537a5a114
equal deleted inserted replaced
8725:decbe9ca2d29 8726:9a5a5808aa14
   147 {
   147 {
   148     int i,j;
   148     int i,j;
   149     for (i = 0; i < SDL_numGestureTouches; i++) {
   149     for (i = 0; i < SDL_numGestureTouches; i++) {
   150         SDL_GestureTouch* touch = &SDL_gestureTouch[i];
   150         SDL_GestureTouch* touch = &SDL_gestureTouch[i];
   151         for (j = 0; j < touch->numDollarTemplates; j++) {
   151         for (j = 0; j < touch->numDollarTemplates; j++) {
   152             if (touch->dollarTemplate[i].hash == gestureId) {
   152             if (touch->dollarTemplate[j].hash == gestureId) {
   153                 return SaveTemplate(&touch->dollarTemplate[j], dst);
   153                 return SaveTemplate(&touch->dollarTemplate[j], dst);
   154             }
   154             }
   155         }
   155         }
   156     }
   156     }
   157     return SDL_SetError("Unknown gestureId");
   157     return SDL_SetError("Unknown gestureId");