Mercurial > MadButterfly
comparison src/redraw_man.c @ 528:d687d3395264 Android_Skia
Clear variables and draw root coord.
Although root coord is never in zeroing list, now, it still need to be
redrawed after redrawing other zeroed coords.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 23 Dec 2009 10:33:51 +0800 |
parents | 47a860beaa44 |
children | cd41d9033567 |
comparison
equal
deleted
inserted
replaced
527:47a860beaa44 | 528:d687d3395264 |
---|---|
2178 | 2178 |
2179 for(i = rdman->zeroing_coords.num - 1; i >= 0; i--) { | 2179 for(i = rdman->zeroing_coords.num - 1; i >= 0; i--) { |
2180 coord = rdman->zeroing_coords.ds[i]; | 2180 coord = rdman->zeroing_coords.ds[i]; |
2181 draw_dirty_cached_coord(rdman, coord); | 2181 draw_dirty_cached_coord(rdman, coord); |
2182 } | 2182 } |
2183 | |
2184 draw_dirty_cached_coord(rdman, rdman->root_coord); | |
2183 } | 2185 } |
2184 | 2186 |
2185 | 2187 |
2186 /*! \brief Re-draw all changed shapes or shapes affected by changed coords. | 2188 /*! \brief Re-draw all changed shapes or shapes affected by changed coords. |
2187 * | 2189 * |
2239 reset_clip(rdman->backend); | 2241 reset_clip(rdman->backend); |
2240 for(i = 0; i < rdman->zeroing_coords.num; i++) { | 2242 for(i = 0; i < rdman->zeroing_coords.num; i++) { |
2241 coord = rdman->zeroing_coords.ds[i]; | 2243 coord = rdman->zeroing_coords.ds[i]; |
2242 DARRAY_CLEAN(_coord_get_dirty_areas(coord)); | 2244 DARRAY_CLEAN(_coord_get_dirty_areas(coord)); |
2243 } | 2245 } |
2246 DARRAY_CLEAN(_coord_get_dirty_areas(rdman->root_coord)); | |
2244 rdman->n_dirty_areas = 0; | 2247 rdman->n_dirty_areas = 0; |
2245 } | 2248 } |
2246 | 2249 |
2247 /* clear COF_MUST_ZEROING flag for coords */ | 2250 /* clear COF_MUST_ZEROING flag for coords */ |
2248 coords = rdman->zeroing_coords.ds; | 2251 coords = rdman->zeroing_coords.ds; |