comparison src/redraw_man.c @ 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 d687d3395264
children 1ad6c6192a80
comparison
equal deleted inserted replaced
529:0160cdabaa51 530:cd41d9033567
454 } 454 }
455 455
456 static int add_dirty_area(redraw_man_t *rdman, coord_t *coord, area_t *area) { 456 static int add_dirty_area(redraw_man_t *rdman, coord_t *coord, area_t *area) {
457 int r; 457 int r;
458 458
459 if(area->w < 0.01 || area->h < 0.01)
460 return OK;
461
459 rdman->n_dirty_areas++; 462 rdman->n_dirty_areas++;
460 r = areas_add(_coord_get_dirty_areas(coord), area); 463 r = areas_add(_coord_get_dirty_areas(coord), area);
461 return r == 0? OK: ERR; 464 return r == 0? OK: ERR;
462 } 465 }
463 466