Mercurial > sdl-ios-xcode
comparison src/video/SDL_rect.c @ 2275:12ea0fdc0df2
Split out the SDL_rect and SDL_surface functions into their own headers.
Removed unused count from the dirty rect list.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Sep 2007 12:20:02 +0000 |
parents | 29cc9e9c76bd |
children | 99210400e8b9 |
comparison
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 { |