1.1 --- a/src/events/SDL_gesture.c Mon Aug 02 00:14:53 2010 -0400
1.2 +++ b/src/events/SDL_gesture.c Tue Aug 03 00:18:00 2010 -0400
1.3 @@ -117,17 +117,12 @@
1.4 int i;
1.5
1.6 //No Longer storing the Hash, rehash on load
1.7 - //fprintf(fp,"%lu ",templ->hash);
1.8 //if(SDL_RWops.write(src,&(templ->hash),sizeof(templ->hash),1) != 1) return 0;
1.9 -
1.10 - /*
1.11 - for(i = 0;i < DOLLARNPOINTS;i++) {
1.12 - fprintf(fp,"%i %i ",(int)templ->path[i].x,(int)templ->path[i].y);
1.13 - }
1.14 - fprintf(fp,"\n");
1.15
1.16 - */
1.17 - if(SDL_RWwrite(src,templ->path,sizeof(templ->path[0]),DOLLARNPOINTS) != DOLLARNPOINTS) return 0;
1.18 + if(SDL_RWwrite(src,templ->path,
1.19 + sizeof(templ->path[0]),DOLLARNPOINTS) != DOLLARNPOINTS)
1.20 + return 0;
1.21 +
1.22 return 1;
1.23 }
1.24
1.25 @@ -499,7 +494,7 @@
1.26 j = -1;
1.27 break;
1.28 }
1.29 - else {
1.30 + else if(event->type == SDL_FINGERMOTION) {
1.31 float dx = x - inTouch->gestureLast[j].f.p.x;
1.32 float dy = y - inTouch->gestureLast[j].f.p.y;
1.33 DollarPath* path = &inTouch->gestureLast[j].dollarPath;