Mercurial > MadButterfly
changeset 672:cbad519226d4
Make sh_image_t managed, and init property store for managed shapes
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 05 Aug 2010 18:00:46 +0800 |
parents | fc29a343ce7c |
children | f5d2ff34c6f6 |
files | include/mb_redraw_man.h src/shape_image.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/include/mb_redraw_man.h Thu Aug 05 17:43:33 2010 +0800 +++ b/include/mb_redraw_man.h Thu Aug 05 18:00:46 2010 +0800 @@ -107,6 +107,8 @@ STAILQ_INS_TAIL(rdman->shapes, shape_t, sh_next, shape); \ if(rdman->last_mouse_over == (mb_obj_t *)(shape)) \ rdman->last_mouse_over = NULL; \ + mb_prop_store_init(&((mb_obj_t *)(shape))->props, \ + (rdman)->pent_pool); \ } while(0) extern int rdman_shape_free(redraw_man_t *rdman, shape_t *shape);