Reformat SDL_gesture.c (part 2, space after keywords)
This commit is contained in:
parent
428e61a43e
commit
3c27fa1eff
1 changed files with 71 additions and 72 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue