Mercurial > MadButterfly
comparison src/shape_path.c @ 146:e96a584487af
Use elmpool to manage paint_color_t objects.
- Add a paint_color_pool member for redraw_man_t.
- Initialize and free when redraw_man_init() and redraw_man_destroy().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 25 Sep 2008 09:53:05 +0800 |
parents | 609ed47a58f2 |
children | 52f7566777f9 |
comparison
equal
deleted
inserted
replaced
145:609ed47a58f2 | 146:e96a584487af |
---|---|
676 */ | 676 */ |
677 cmd_cnt += RESERVED_AIXS; | 677 cmd_cnt += RESERVED_AIXS; |
678 cmd_cnt = (cmd_cnt + 3) & ~0x3; | 678 cmd_cnt = (cmd_cnt + 3) & ~0x3; |
679 | 679 |
680 path = (sh_path_t *)malloc(sizeof(sh_path_t)); | 680 path = (sh_path_t *)malloc(sizeof(sh_path_t)); |
681 /*! \todo Remove this memset()? */ | |
681 memset(&path->shape, 0, sizeof(shape_t)); | 682 memset(&path->shape, 0, sizeof(shape_t)); |
682 path->shape.sh_type = SHT_PATH; | 683 path->shape.sh_type = SHT_PATH; |
683 path->cmd_len = cmd_cnt; | 684 path->cmd_len = cmd_cnt; |
684 path->arg_len = arg_cnt; | 685 path->arg_len = arg_cnt; |
685 path->fix_arg_len = fix_arg_cnt; | 686 path->fix_arg_len = fix_arg_cnt; |