Mercurial > MadButterfly
comparison src/redraw_man.c @ 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 |
comparison
equal
deleted
inserted
replaced
523:c3fe9e4bdec1 | 524:dcf4673896f4 |
---|---|
2037 area_t *area; | 2037 area_t *area; |
2038 | 2038 |
2039 mbe_new_path(cr); | 2039 mbe_new_path(cr); |
2040 for(i = 0; i < n_dirty_areas; i++) { | 2040 for(i = 0; i < n_dirty_areas; i++) { |
2041 area = dirty_areas[i]; | 2041 area = dirty_areas[i]; |
2042 if(area->w < 0.1 || area->h < 0.1) | |
2043 continue; | |
2042 mbe_rectangle(cr, area->x, area->y, area->w, area->h); | 2044 mbe_rectangle(cr, area->x, area->y, area->w, area->h); |
2043 } | 2045 } |
2044 mbe_clip(cr); | 2046 mbe_clip(cr); |
2045 } | 2047 } |
2046 | 2048 |