# HG changeset patch # User Thinker K.F. Li # Date 1284697296 -28800 # Node ID f3ce3598612fc1a4b4e7a0a810412b576a7620f1 # Parent 51da337879bda123ffea770b1fb7eec909801c5f Avoid to add a coord to dirty_pcache_area_coords twice or more diff -r 51da337879bd -r f3ce3598612f src/redraw_man.c --- a/src/redraw_man.c Fri Sep 17 12:21:35 2010 +0800 +++ b/src/redraw_man.c Fri Sep 17 12:21:36 2010 +0800 @@ -474,8 +474,10 @@ } static int add_dirty_pcache_area_coord(redraw_man_t *rdman, coord_t *coord) { - coord_set_flags(coord, COF_DIRTY_PCACHE_AREA); - ADD_DATA(coords, dirty_pcache_area_coords, coord); + if(!coord_get_flags(coord, COF_DIRTY_PCACHE_AREA)) { + coord_set_flags(coord, COF_DIRTY_PCACHE_AREA); + ADD_DATA(coords, dirty_pcache_area_coords, coord); + } return OK; }