Mercurial > MadButterfly
comparison tools/mb_c_source.m4 @ 66:309f1eefbec0
create new coords from redraw_man
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 13 Aug 2008 02:17:19 +0800 |
parents | c668c5c3ceae |
children | 3f2872a1a2fe |
comparison
equal
deleted
inserted
replaced
65:35c2b7ba140b | 66:309f1eefbec0 |
---|---|
76 obj->$1 = sh_path_new("$2"); | 76 obj->$1 = sh_path_new("$2"); |
77 rdman_add_shape(rdman, obj->$1, obj->$3); | 77 rdman_add_shape(rdman, obj->$1, obj->$3); |
78 ]]) | 78 ]]) |
79 | 79 |
80 define([S_ADD_COORD],[[ | 80 define([S_ADD_COORD],[[ |
81 obj->$1 = (coord_t *)malloc(sizeof(coord_t)); | 81 obj->$1 = rdman_coord_new(rdman, obj->$2); |
82 coord_init(obj->$1, obj->$2); | |
83 ]]) | 82 ]]) |
84 | 83 |
85 define([S_FILL_SHAPE_WITH_PAINT],[dnl | 84 define([S_FILL_SHAPE_WITH_PAINT],[dnl |
86 [ rdman_paint_fill(rdman, obj->$2, obj->$1); | 85 [ rdman_paint_fill(rdman, obj->$2, obj->$1); |
87 ]]) | 86 ]]) |