diff src/event.c @ 314:6c350fc92ae3

Cache rednering result is now workable. - Know issues - For unknow issue, CAIRO_OPERATOR_CLEAR will not be limited by clipping. Image will be cleaned in a strange way. Maybe, it is a bug of Cairo.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 05 Mar 2009 00:54:42 +0800
parents 29acbd8a0dd0
children 7f7855df2af0
line wrap: on
line diff
--- a/src/event.c	Thu Mar 05 00:54:42 2009 +0800
+++ b/src/event.c	Thu Mar 05 00:54:42 2009 +0800
@@ -257,6 +257,9 @@
 coord_t *preorder_coord_subtree(coord_t *root, coord_t *last) {
     if(STAILQ_HEAD(last->children) && !(last->flags & COF_SKIP))
 	return STAILQ_HEAD(last->children);
+    
+    last->flags &= ~COF_SKIP;
+    
     if(last == root)
 	return NULL;
     while(STAILQ_NEXT(coord_t, sibling, last) == NULL) {
@@ -269,7 +272,7 @@
 
 static
 void preorder_coord_skip_subtree(coord_t *coord) {
-    coord->flags &= ~COF_SKIP;
+    coord->flags |= COF_SKIP;
 }
 
 static