Mercurial > MadButterfly
comparison src/redraw_man.c @ 811:5aca6024b147
subtree of root coord can not be skept
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 02 Sep 2010 11:00:30 +0800 |
parents | 01b514800fbe |
children | 4badbfa8f386 |
comparison
equal
deleted
inserted
replaced
810:84853c8559cf | 811:5aca6024b147 |
---|---|
1642 } | 1642 } |
1643 } | 1643 } |
1644 | 1644 |
1645 /* Add all marked coords into redraw_man_t::zeroing_coords list */ | 1645 /* Add all marked coords into redraw_man_t::zeroing_coords list */ |
1646 FOR_COORDS_PREORDER(rdman->root_coord, coord) { | 1646 FOR_COORDS_PREORDER(rdman->root_coord, coord) { |
1647 if(!coord_is_cached(coord)) | 1647 if(!coord_is_cached(coord) || coord_is_root(coord)) |
1648 continue; /* skip coords that is not cached */ | 1648 continue; /* skip coords that is not cached */ |
1649 | 1649 |
1650 if(!coord_get_flags(coord, COF_TEMP_MARK)) { | 1650 if(!coord_get_flags(coord, COF_TEMP_MARK)) { |
1651 if(coord_get_flags(coord, COF_DIRTY_PCACHE_AREA)) | 1651 if(coord_get_flags(coord, COF_DIRTY_PCACHE_AREA)) |
1652 add_dirty_pcache_area_coord(rdman, coord); | 1652 add_dirty_pcache_area_coord(rdman, coord); |