changeset 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 0160cdabaa51
files src/X_supp.c src/redraw_man.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/X_supp.c	Tue Dec 22 22:39:53 2009 +0800
+++ b/src/X_supp.c	Wed Dec 23 10:33:51 2009 +0800
@@ -546,8 +546,10 @@
 	return NULL;
 
     r = X_MB_init(display_name, w, h, rt);
-    if(r != OK)
+    if(r != OK) {
+	free(rt);
 	return NULL;
+    }
 
     return rt;
 }
--- a/src/redraw_man.c	Tue Dec 22 22:39:53 2009 +0800
+++ b/src/redraw_man.c	Wed Dec 23 10:33:51 2009 +0800
@@ -2180,6 +2180,8 @@
 	coord = rdman->zeroing_coords.ds[i];
 	draw_dirty_cached_coord(rdman, coord);
     }
+
+    draw_dirty_cached_coord(rdman, rdman->root_coord);
 }
 
 
@@ -2241,6 +2243,7 @@
 	    coord = rdman->zeroing_coords.ds[i];
 	    DARRAY_CLEAN(_coord_get_dirty_areas(coord));
 	}
+	DARRAY_CLEAN(_coord_get_dirty_areas(rdman->root_coord));
 	rdman->n_dirty_areas = 0;
     }