src/events/SDL_touch.c
changeset 6810 b5609445aa4c
parent 6299 3809b2eee787
child 6863 73be5b6b2a86
equal deleted inserted replaced
6809:54cca01b6006 6810:b5609445aa4c
   266     /* Add the touch to the list of touch */
   266     /* Add the touch to the list of touch */
   267     if(touch->num_fingers  >= touch->max_fingers){
   267     if(touch->num_fingers  >= touch->max_fingers){
   268                 //printf("Making room for it!\n");
   268                 //printf("Making room for it!\n");
   269                 fingers = (SDL_Finger **) SDL_realloc(touch->fingers,
   269                 fingers = (SDL_Finger **) SDL_realloc(touch->fingers,
   270                                                      (touch->num_fingers + 1) * sizeof(SDL_Finger *));
   270                                                      (touch->num_fingers + 1) * sizeof(SDL_Finger *));
   271                 touch->max_fingers = touch->num_fingers+1;
       
   272                 if (!fingers) {
   271                 if (!fingers) {
   273                         SDL_OutOfMemory();
   272                         SDL_OutOfMemory();
   274                         return -1;
   273                         return -1;
   275                 } else {
   274                 } else {
   276                         touch->max_fingers = touch->num_fingers+1;
   275                         touch->max_fingers = touch->num_fingers+1;