src/video/SDL_rect.c
changeset 2275 12ea0fdc0df2
parent 2224 29cc9e9c76bd
child 2859 99210400e8b9
equal deleted inserted replaced
2274:aedfcdeb69b6 2275:12ea0fdc0df2
   141         }
   141         }
   142     }
   142     }
   143     dirty->rect = *rect;
   143     dirty->rect = *rect;
   144     dirty->next = list->list;
   144     dirty->next = list->list;
   145     list->list = dirty;
   145     list->list = dirty;
   146     ++list->count;
       
   147 }
   146 }
   148 
   147 
   149 void
   148 void
   150 SDL_ClearDirtyRects(SDL_DirtyRectList * list)
   149 SDL_ClearDirtyRects(SDL_DirtyRectList * list)
   151 {
   150 {
   162         prev->next = list->list;
   161         prev->next = list->list;
   163     } else {
   162     } else {
   164         list->free = list->list;
   163         list->free = list->list;
   165     }
   164     }
   166     list->list = NULL;
   165     list->list = NULL;
   167     list->count = 0;
       
   168 }
   166 }
   169 
   167 
   170 void
   168 void
   171 SDL_FreeDirtyRects(SDL_DirtyRectList * list)
   169 SDL_FreeDirtyRects(SDL_DirtyRectList * list)
   172 {
   170 {