Mercurial > MadButterfly
comparison src/shape_path.c @ 149:52f7566777f9
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 25 Sep 2008 11:29:42 +0800 |
parents | e96a584487af |
children | b90abd31a281 |
comparison
equal
deleted
inserted
replaced
148:fce696643b1e | 149:52f7566777f9 |
---|---|
675 * simple. | 675 * simple. |
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 /*! \todo Use elmpool to manage sh_path_t objects. */ | |
680 path = (sh_path_t *)malloc(sizeof(sh_path_t)); | 681 path = (sh_path_t *)malloc(sizeof(sh_path_t)); |
681 /*! \todo Remove this memset()? */ | 682 /*! \todo Remove this memset()? */ |
682 memset(&path->shape, 0, sizeof(shape_t)); | 683 memset(&path->shape, 0, sizeof(shape_t)); |
683 path->shape.sh_type = SHT_PATH; | 684 path->shape.sh_type = SHT_PATH; |
684 path->cmd_len = cmd_cnt; | 685 path->cmd_len = cmd_cnt; |