Mercurial > MadButterfly
diff src/redraw_man.c @ 30:e06a4a667ce2
Accept mouse/pointer event and hint the shape that the pointer is over.
- add find_shape_at_pos()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 05 Aug 2008 12:40:45 +0800 |
parents | f56c96b035a8 |
children | d82749f77108 |
line wrap: on
line diff
--- a/src/redraw_man.c Mon Aug 04 21:13:32 2008 +0800 +++ b/src/redraw_man.c Tue Aug 05 12:40:45 2008 +0800 @@ -50,8 +50,7 @@ if(new_buf == NULL) return ERR; - if(new_buf != *buf) - *buf = new_buf; + *buf = new_buf; return OK; } @@ -142,6 +141,8 @@ free(rdman->dirty_coords); if(rdman->dirty_geos) free(rdman->dirty_geos); + if(rdman->gen_geos) + free(rdman->gen_geos); } @@ -710,6 +711,14 @@ return OK; } +int rdman_force_clean(redraw_man_t *rdman) { + int r; + + r = clean_rdman_dirties(rdman); + + return r; +} + shnode_t *shnode_new(redraw_man_t *rdman, shape_t *shape) { shnode_t *node;