Mercurial > MadButterfly
comparison src/redraw_man.c @ 189:257af0ed5852
When a bullet hits a tank or wall, it shows a bang animation.
* Bang is not removed after animation stop.
* We want removing program and bang as animation actions.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 18 Nov 2008 09:04:40 +0800 |
parents | 530bb7728546 |
children | 54fdc2a65242 |
comparison
equal
deleted
inserted
replaced
188:a7358d9127c8 | 189:257af0ed5852 |
---|---|
647 if(coord->flags & COF_DIRTY) | 647 if(coord->flags & COF_DIRTY) |
648 return OK; | 648 return OK; |
649 | 649 |
650 add_dirty_coord(rdman, coord); | 650 add_dirty_coord(rdman, coord); |
651 | 651 |
652 #if 0 | |
652 if(coord->flags & COF_HIDDEN) | 653 if(coord->flags & COF_HIDDEN) |
653 return OK; | 654 return OK; |
655 #endif | |
654 | 656 |
655 /* Make child coords dirty. */ | 657 /* Make child coords dirty. */ |
656 for(child = preorder_coord_subtree(coord, coord); | 658 for(child = preorder_coord_subtree(coord, coord); |
657 child != NULL; | 659 child != NULL; |
658 child = preorder_coord_subtree(coord, child)) { | 660 child = preorder_coord_subtree(coord, child)) { |
910 #endif | 912 #endif |
911 | 913 |
912 static void draw_shape(redraw_man_t *rdman, cairo_t *cr, shape_t *shape) { | 914 static void draw_shape(redraw_man_t *rdman, cairo_t *cr, shape_t *shape) { |
913 paint_t *fill, *stroke; | 915 paint_t *fill, *stroke; |
914 | 916 |
917 /*! \todo Move operator of shapes into singleton structures that define | |
918 * operators for them. | |
919 */ | |
915 if(shape->fill || shape->stroke) { | 920 if(shape->fill || shape->stroke) { |
916 switch(shape->sh_type) { | 921 switch(shape->sh_type) { |
917 case SHT_PATH: | 922 case SHT_PATH: |
918 sh_path_draw(shape, cr); | 923 sh_path_draw(shape, cr); |
919 break; | 924 break; |