# HG changeset patch # User Thinker K.F. Li # Date 1261490321 -28800 # Node ID f9326e95541785698a18cd05c2b741063cccfb69 # Parent dcf4673896f45922844e432382d5d371f7e65891 Does not add root coord to zeroing list diff -r dcf4673896f4 -r f9326e955417 src/redraw_man.c --- a/src/redraw_man.c Tue Dec 22 14:21:34 2009 +0800 +++ b/src/redraw_man.c Tue Dec 22 21:58:41 2009 +0800 @@ -1638,9 +1638,9 @@ geo = dirty_geos[i]; coord = geo_get_coord(geo)->canvas_info->owner; while(!coord_get_flags(coord, COF_MUST_ZEROING | COF_TEMP_MARK)) { - coord_set_flags(coord, COF_TEMP_MARK); if(coord_is_root(coord)) break; + coord_set_flags(coord, COF_TEMP_MARK); coord = coord->parent->canvas_info->owner; } } @@ -1651,9 +1651,9 @@ for(i = 0; i < n_dirty_coords; i++) { coord = dirty_coords[i]->canvas_info->owner; while(!coord_get_flags(coord, COF_MUST_ZEROING | COF_TEMP_MARK)) { - coord_set_flags(coord, COF_TEMP_MARK); if(coord_is_root(coord)) break; + coord_set_flags(coord, COF_TEMP_MARK); coord = coord->parent->canvas_info->owner; } } @@ -1687,8 +1687,6 @@ all_zeroing = &rdman->zeroing_coords; for(i = all_zeroing->num - 1; i >= 0; i--) { coord = all_zeroing->ds[i]; - if(coord_is_root(coord)) - continue; zeroing_coord(rdman, coord); }