Mercurial > MadButterfly
diff include/mb_redraw_man.h @ 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 | b6b3dbeaedf3 |
children | f43224bf3524 |
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);