# HG changeset patch # User Thinker K.F. Li # Date 1284697295 -28800 # Node ID 51da337879bda123ffea770b1fb7eec909801c5f # Parent 9f305d895e8ff0057b23f07b53a377a9059f14bd Do not add dirty area for cached coords diff -r 9f305d895e8f -r 51da337879bd 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:35 2010 +0800 @@ -1435,8 +1435,12 @@ if(r != OK) return ERR; - add_dirty_area(rdman, coord, coord->cur_area); - add_dirty_area(rdman, coord, coord->last_area); + /* Dirty areas of cached one is added after update pcache_areas. + */ + if(!coord_is_cached(coord)) { + add_dirty_area(rdman, coord, coord->cur_area); + add_dirty_area(rdman, coord, coord->last_area); + } coord_clear_flags(coord, COF_DIRTY); coord_set_flags(coord, COF_JUST_CLEAN);