Mercurial > MadButterfly
comparison src/redraw_man.c @ 114:1909d53071ab
Check if a coord dirty before dirty it
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 14 Sep 2008 01:10:49 +0800 |
parents | 98c83441d7d6 |
children | 3895d2224e67 |
comparison
equal
deleted
inserted
replaced
113:cf8ccf06e397 | 114:1909d53071ab |
---|---|
390 | 390 |
391 /* Make the coord and child coords dirty. */ | 391 /* Make the coord and child coords dirty. */ |
392 for(child = coord; | 392 for(child = coord; |
393 child != NULL; | 393 child != NULL; |
394 child = preorder_coord_subtree(coord, child)) { | 394 child = preorder_coord_subtree(coord, child)) { |
395 if(child->flags & COF_DIRTY) | |
396 continue; | |
395 make_sure_dirty_coords(rdman); | 397 make_sure_dirty_coords(rdman); |
396 | 398 |
397 rdman->dirty_coords[rdman->n_dirty_coords++] = child; | 399 rdman->dirty_coords[rdman->n_dirty_coords++] = child; |
398 child->flags |= COF_DIRTY; | 400 child->flags |= COF_DIRTY; |
399 } | 401 } |