src/events/SDL_gesture.c
changeset 7510 dbba26bab0f8
parent 7509 cf7c2e3493b2
child 7662 d31efd717578
     1.1 --- a/src/events/SDL_gesture.c	Tue Jul 23 17:40:16 2013 -0700
     1.2 +++ b/src/events/SDL_gesture.c	Tue Jul 23 17:40:18 2013 -0700
     1.3 @@ -391,11 +391,12 @@
     1.4  
     1.5  static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch)
     1.6  {
     1.7 -
     1.8 -    SDL_FloatPoint points[DOLLARNPOINTS] = {{0}};
     1.9 +    SDL_FloatPoint points[DOLLARNPOINTS];
    1.10      int i;
    1.11      float bestDiff = 10000;
    1.12  
    1.13 +    SDL_memset(points, 0, sizeof(points));
    1.14 +
    1.15      dollarNormalize(path,points);
    1.16  
    1.17      //PrintPath(points);