src/events/SDL_gesture.c
changeset 7037 3fedf1f25b94
parent 7009 161b7b6a5303
child 7191 75360622e65f
     1.1 --- a/src/events/SDL_gesture.c	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/events/SDL_gesture.c	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -158,8 +158,7 @@
     1.4              }
     1.5          }
     1.6      }
     1.7 -    SDL_SetError("Unknown gestureId");
     1.8 -    return -1;
     1.9 +    return SDL_SetError("Unknown gestureId");
    1.10  }
    1.11  
    1.12  //path is an already sampled set of points
    1.13 @@ -176,8 +175,7 @@
    1.14                                            (index + 1) *
    1.15                                            sizeof(SDL_DollarTemplate));
    1.16      if (!dollarTemplate) {
    1.17 -        SDL_OutOfMemory();
    1.18 -        return -1;
    1.19 +        return SDL_OutOfMemory();
    1.20      }
    1.21      inTouch->dollarTemplate = dollarTemplate;
    1.22  
    1.23 @@ -419,8 +417,7 @@
    1.24                                                                       sizeof(SDL_GestureTouch));
    1.25  
    1.26      if (!gestureTouch) {
    1.27 -        SDL_OutOfMemory();
    1.28 -        return -1;
    1.29 +        return SDL_OutOfMemory();
    1.30      }
    1.31  
    1.32      SDL_gestureTouch = gestureTouch;