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 2409db9e8b
commit dded190188

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);