src/events/SDL_gesture.c
changeset 7900 cc2289c332eb
parent 7899 e94abe9c40ca
child 8093 b43765095a6f
     1.1 --- a/src/events/SDL_gesture.c	Sat Nov 02 11:51:23 2013 +0100
     1.2 +++ b/src/events/SDL_gesture.c	Sat Nov 02 12:07:21 2013 +0100
     1.3 @@ -116,15 +116,14 @@
     1.4  }
     1.5  
     1.6  
     1.7 -static int SaveTemplate(SDL_DollarTemplate *templ, SDL_RWops * src)
     1.8 +static int SaveTemplate(SDL_DollarTemplate *templ, SDL_RWops *dst)
     1.9  {
    1.10 -    if (src == NULL) return 0;
    1.11 -
    1.12 +    if (dst == NULL) return 0;
    1.13  
    1.14      /* No Longer storing the Hash, rehash on load */
    1.15 -    /* if(SDL_RWops.write(src,&(templ->hash),sizeof(templ->hash),1) != 1) return 0; */
    1.16 +    /* if (SDL_RWops.write(dst, &(templ->hash), sizeof(templ->hash), 1) != 1) return 0; */
    1.17  
    1.18 -    if (SDL_RWwrite(src,templ->path,
    1.19 +    if (SDL_RWwrite(dst, templ->path,
    1.20                      sizeof(templ->path[0]),DOLLARNPOINTS) != DOLLARNPOINTS)
    1.21          return 0;
    1.22  
    1.23 @@ -132,26 +131,26 @@
    1.24  }
    1.25  
    1.26  
    1.27 -int SDL_SaveAllDollarTemplates(SDL_RWops *src)
    1.28 +int SDL_SaveAllDollarTemplates(SDL_RWops *dst)
    1.29  {
    1.30      int i,j,rtrn = 0;
    1.31      for (i = 0; i < SDL_numGestureTouches; i++) {
    1.32          SDL_GestureTouch* touch = &SDL_gestureTouch[i];
    1.33          for (j = 0; j < touch->numDollarTemplates; j++) {
    1.34 -            rtrn += SaveTemplate(&touch->dollarTemplate[i],src);
    1.35 +            rtrn += SaveTemplate(&touch->dollarTemplate[i], dst);
    1.36          }
    1.37      }
    1.38      return rtrn;
    1.39  }
    1.40  
    1.41 -int SDL_SaveDollarTemplate(SDL_GestureID gestureId, SDL_RWops *src)
    1.42 +int SDL_SaveDollarTemplate(SDL_GestureID gestureId, SDL_RWops *dst)
    1.43  {
    1.44      int i,j;
    1.45      for (i = 0; i < SDL_numGestureTouches; i++) {
    1.46          SDL_GestureTouch* touch = &SDL_gestureTouch[i];
    1.47          for (j = 0; j < touch->numDollarTemplates; j++) {
    1.48              if (touch->dollarTemplate[i].hash == gestureId) {
    1.49 -                return SaveTemplate(&touch->dollarTemplate[i],src);
    1.50 +                return SaveTemplate(&touch->dollarTemplate[i], dst);
    1.51              }
    1.52          }
    1.53      }