Mercurial > MadButterfly
comparison src/redraw_man.c @ 835:51da337879bd
Do not add dirty area for cached coords
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 17 Sep 2010 12:21:35 +0800 |
parents | 9f305d895e8f |
children | f3ce3598612f |
comparison
equal
deleted
inserted
replaced
834:9f305d895e8f | 835:51da337879bd |
---|---|
1433 */ | 1433 */ |
1434 r = coord_clean_members_n_compute_area(coord); | 1434 r = coord_clean_members_n_compute_area(coord); |
1435 if(r != OK) | 1435 if(r != OK) |
1436 return ERR; | 1436 return ERR; |
1437 | 1437 |
1438 add_dirty_area(rdman, coord, coord->cur_area); | 1438 /* Dirty areas of cached one is added after update pcache_areas. |
1439 add_dirty_area(rdman, coord, coord->last_area); | 1439 */ |
1440 if(!coord_is_cached(coord)) { | |
1441 add_dirty_area(rdman, coord, coord->cur_area); | |
1442 add_dirty_area(rdman, coord, coord->last_area); | |
1443 } | |
1440 | 1444 |
1441 coord_clear_flags(coord, COF_DIRTY); | 1445 coord_clear_flags(coord, COF_DIRTY); |
1442 coord_set_flags(coord, COF_JUST_CLEAN); | 1446 coord_set_flags(coord, COF_JUST_CLEAN); |
1443 | 1447 |
1444 FORCHILDREN(coord, child) { | 1448 FORCHILDREN(coord, child) { |