Correct usage of SDL_AddDollarGesture (return value >= 0 on success)

This commit is contained in:
Kees Bakker 2011-10-27 22:53:28 +02:00
parent 9f6e4ab9ab
commit 9e6ee9e79a

View file

@ -227,7 +227,8 @@ int SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src)
if (touchId >= 0) {
//printf("Adding loaded gesture to 1 touch\n");
if (SDL_AddDollarGesture(touch,templ.path)) loaded++;
if (SDL_AddDollarGesture(touch, templ.path) >= 0)
loaded++;
}
else {
//printf("Adding to: %i touches\n",SDL_numGestureTouches);