Mercurial > MadButterfly
comparison src/paint.c @ 154:6ce68c1f7405
Tank can fire bullet.
1. Add the redraw subject on redraw_man_t.
2. mb_c_source.m4 & mb_c_header.m4 are changed to free & remove shapes.
3. Add rdman_coord_subtree_free() to remove a subtree of coords.
4. Fix bug of rdman_remove_shape().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 30 Sep 2008 02:44:06 +0800 |
parents | 995ee8fd5f1a |
children | b90abd31a281 |
comparison
equal
deleted
inserted
replaced
153:9870b049b7f6 | 154:6ce68c1f7405 |
---|---|
24 | 24 |
25 static void paint_color_free(paint_t *paint) { | 25 static void paint_color_free(paint_t *paint) { |
26 paint_color_t *color = (paint_color_t *)paint; | 26 paint_color_t *color = (paint_color_t *)paint; |
27 | 27 |
28 shnode_list_free(color->rdman, paint->members); | 28 shnode_list_free(color->rdman, paint->members); |
29 free(paint); | 29 elmpool_elm_free(color->rdman->paint_color_pool, paint); |
30 } | 30 } |
31 | 31 |
32 paint_t *paint_color_new(redraw_man_t *rdman, | 32 paint_t *paint_color_new(redraw_man_t *rdman, |
33 co_comp_t r, co_comp_t g, | 33 co_comp_t r, co_comp_t g, |
34 co_comp_t b, co_comp_t a) { | 34 co_comp_t b, co_comp_t a) { |