diff src/events/SDL_gesture.c @ 4681:5378f2d0754f

Fixed some Gesture bugs
author Jim Grandpre <jim.tla@gmail.com>
date Mon, 02 Aug 2010 00:14:53 -0400
parents f8431f66613d
children 4ba1048a324c
line wrap: on
line diff
--- a/src/events/SDL_gesture.c	Sat Jul 31 20:55:33 2010 -0700
+++ b/src/events/SDL_gesture.c	Mon Aug 02 00:14:53 2010 -0400
@@ -27,7 +27,7 @@
 #include "SDL_gesture_c.h"
 
 //TODO: Replace with malloc
-#define MAXFINGERS 3
+#define MAXFINGERS 5
 #define MAXTOUCHES 2
 #define MAXTEMPLATES 4
 #define MAXPATHSIZE 1024
@@ -496,6 +496,7 @@
 	  }
 	} 
 	inTouch->gestureLast[j] = inTouch->gestureLast[inTouch->numDownFingers];
+	j = -1;
 	break;
       }
       else {