Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
keestux committed Oct 27, 2011
1 parent e2aeb03 commit 6af9999aa64bea78e4d4a8e5522a6148563f3fdb
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/events/SDL_gesture.c
@@ -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);

0 comments on commit 6af9999

Please sign in to comment.