Commit 9e6ee9e7 authored by Kees Bakker's avatar Kees Bakker

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

parent 9f6e4ab9
...@@ -227,7 +227,8 @@ int SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src) ...@@ -227,7 +227,8 @@ int SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src)
if (touchId >= 0) { if (touchId >= 0) {
//printf("Adding loaded gesture to 1 touch\n"); //printf("Adding loaded gesture to 1 touch\n");
if (SDL_AddDollarGesture(touch,templ.path)) loaded++; if (SDL_AddDollarGesture(touch, templ.path) >= 0)
loaded++;
} }
else { else {
//printf("Adding to: %i touches\n",SDL_numGestureTouches); //printf("Adding to: %i touches\n",SDL_numGestureTouches);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment