comparison src/redraw_man.c @ 540:43b26ac2f69b Android_Skia

Fix bug of dirty areas of coords. The coord_t::cur_area and coord_t::last_area are swapped two times for every clearing iteration. It means no swapping, but it should be.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 24 May 2010 17:43:19 +0800
parents ce11e889ea4e
children f42419c08a65
comparison
equal deleted inserted replaced
539:ce11e889ea4e 540:43b26ac2f69b
1446 OFFSET(coord_t, order)); /* ascend order */ 1446 OFFSET(coord_t, order)); /* ascend order */
1447 for(i = 0; i < n_dirty_coords; i++) { 1447 for(i = 0; i < n_dirty_coords; i++) {
1448 coord = dirty_coords[i]; 1448 coord = dirty_coords[i];
1449 if(!coord_get_flags(coord, COF_DIRTY | COF_JUST_CLEAN)) 1449 if(!coord_get_flags(coord, COF_DIRTY | COF_JUST_CLEAN))
1450 continue; 1450 continue;
1451 SWAP(coord->cur_area, coord->last_area, area_t *);
1452 r = clean_coord(rdman, coord); 1451 r = clean_coord(rdman, coord);
1453 if(r != OK) 1452 if(r != OK)
1454 return ERR; 1453 return ERR;
1455 } 1454 }
1456 } 1455 }