changeset 114:1909d53071ab

Check if a coord dirty before dirty it
author Thinker K.F. Li <thinker@branda.to>
date Sun, 14 Sep 2008 01:10:49 +0800
parents cf8ccf06e397
children 3895d2224e67
files src/redraw_man.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Sun Sep 14 01:04:40 2008 +0800
+++ b/src/redraw_man.c	Sun Sep 14 01:10:49 2008 +0800
@@ -392,6 +392,8 @@
     for(child = coord;
 	child != NULL;
 	child = preorder_coord_subtree(coord, child)) {
+	if(child->flags & COF_DIRTY)
+	    continue;
 	make_sure_dirty_coords(rdman);
  
 	rdman->dirty_coords[rdman->n_dirty_coords++] = child;