Reformat SDL_gesture.c (part 2, space after keywords)

This commit is contained in:
Kees Bakker 2011-10-27 22:23:09 +02:00
parent 428e61a43e
commit 3c27fa1eff

View file

@ -319,10 +319,8 @@ int dollarNormalize(const SDL_DollarPath *path,SDL_FloatPoint *points)
//Calculate length if it hasn't already been done
if (length <= 0) {
for (i=1;i < path->numPoints; i++) {
float dx = path->p[i ].x -
path->p[i-1].x;
float dy = path->p[i ].y -
path->p[i-1].y;
float dx = path->p[i ].x - path->p[i-1].x;
float dy = path->p[i ].y - path->p[i-1].y;
length += (float)(SDL_sqrt(dx*dx+dy*dy));
}
}
@ -463,7 +461,8 @@ SDL_GestureTouch * SDL_GetGestureTouch(SDL_TouchID id)
int i;
for (i = 0; i < SDL_numGestureTouches; i++) {
//printf("%i ?= %i\n",SDL_gestureTouch[i].id,id);
if(SDL_gestureTouch[i].id == id) return &SDL_gestureTouch[i];
if (SDL_gestureTouch[i].id == id)
return &SDL_gestureTouch[i];
}
return NULL;
}