Mercurial > MadButterfly
changeset 530:cd41d9033567 Android_Skia
Ignore small dirty area.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 25 Dec 2009 00:27:19 +0800 |
parents | 0160cdabaa51 |
children | 1ad6c6192a80 |
files | src/redraw_man.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/redraw_man.c Wed Dec 23 10:41:19 2009 +0800 +++ b/src/redraw_man.c Fri Dec 25 00:27:19 2009 +0800 @@ -456,6 +456,9 @@ static int add_dirty_area(redraw_man_t *rdman, coord_t *coord, area_t *area) { int r; + if(area->w < 0.01 || area->h < 0.01) + return OK; + rdman->n_dirty_areas++; r = areas_add(_coord_get_dirty_areas(coord), area); return r == 0? OK: ERR;