Mercurial > MadButterfly
comparison src/redraw_man.c @ 150:0824f4804ee0
Fix bug of broken coord_hide() and shape_hide().
Forget to check GEF_HIDDEN flag of shapes before drawing it.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 25 Sep 2008 23:44:38 +0800 |
parents | fce696643b1e |
children | d11aa8fc06c7 |
comparison
equal
deleted
inserted
replaced
149:52f7566777f9 | 150:0824f4804ee0 |
---|---|
846 r = draw_coord_shapes_in_areas(rdman, child, n_areas, areas); | 846 r = draw_coord_shapes_in_areas(rdman, child, n_areas, areas); |
847 dirty |= r; | 847 dirty |= r; |
848 child = NEXT_CHILD(child); | 848 child = NEXT_CHILD(child); |
849 } else { | 849 } else { |
850 ASSERT(member != NULL); | 850 ASSERT(member != NULL); |
851 if(is_geo_in_areas(member, n_areas, areas)) { | 851 if((!(member->flags & GEF_HIDDEN)) && |
852 is_geo_in_areas(member, n_areas, areas)) { | |
852 draw_shape(rdman, canvas, member->shape); | 853 draw_shape(rdman, canvas, member->shape); |
853 dirty = 1; | 854 dirty = 1; |
854 } | 855 } |
855 member = NEXT_MEMBER(member); | 856 member = NEXT_MEMBER(member); |
856 mem_idx++; | 857 mem_idx++; |