Mercurial > MadButterfly
comparison src/redraw_man.c @ 104:98c83441d7d6
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 11 Sep 2008 09:14:58 +0800 |
parents | 9b4a02bcaeb1 |
children | 1909d53071ab |
comparison
equal
deleted
inserted
replaced
103:19f09c343dcc | 104:98c83441d7d6 |
---|---|
298 * \todo redraw shape objects that overlaid with removed one. | 298 * \todo redraw shape objects that overlaid with removed one. |
299 */ | 299 */ |
300 int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape) { | 300 int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape) { |
301 STAILQ_REMOVE(rdman->all_geos, geo_t, next, shape->geo); | 301 STAILQ_REMOVE(rdman->all_geos, geo_t, next, shape->geo); |
302 subject_free(&rdman->ob_factory, shape->geo->mouse_event); | 302 subject_free(&rdman->ob_factory, shape->geo->mouse_event); |
303 sh_detach_geo(shape); | |
303 elmpool_elm_free(rdman->geo_pool, shape->geo); | 304 elmpool_elm_free(rdman->geo_pool, shape->geo); |
304 sh_detach_geo(shape); | |
305 rdman->n_geos--; | 305 rdman->n_geos--; |
306 sh_detach_coord(shape); | 306 sh_detach_coord(shape); |
307 return OK; | 307 return OK; |
308 } | 308 } |
309 | 309 |