changeset 524:dcf4673896f4 Android_Skia

Skip very small dirty areas.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 22 Dec 2009 14:21:34 +0800
parents c3fe9e4bdec1
children f9326e955417
files src/redraw_man.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Tue Dec 22 11:04:52 2009 +0800
+++ b/src/redraw_man.c	Tue Dec 22 14:21:34 2009 +0800
@@ -2039,6 +2039,8 @@
     mbe_new_path(cr);
     for(i = 0; i < n_dirty_areas; i++) {
 	area = dirty_areas[i];
+	if(area->w < 0.1 || area->h < 0.1)
+	    continue;
 	mbe_rectangle(cr, area->x, area->y, area->w, area->h);
     }
     mbe_clip(cr);