src/timer/SDL_timer.c
changeset 11278 37f4d29e155d
parent 11272 d60ede5a0c2e
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11277:a2792ce0ec8c 11278:37f4d29e155d
   166                 interval = current->callback(current->interval, current->param);
   166                 interval = current->callback(current->interval, current->param);
   167             }
   167             }
   168 
   168 
   169             if (interval > 0) {
   169             if (interval > 0) {
   170                 /* Reschedule this timer */
   170                 /* Reschedule this timer */
       
   171                 current->interval = interval;
   171                 current->scheduled = tick + interval;
   172                 current->scheduled = tick + interval;
   172                 SDL_AddTimerInternal(data, current);
   173                 SDL_AddTimerInternal(data, current);
   173             } else {
   174             } else {
   174                 if (!freelist_head) {
   175                 if (!freelist_head) {
   175                     freelist_head = current;
   176                     freelist_head = current;