changeset 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 35c2b7ba140b
children 3f2872a1a2fe
files tools/mb_c_source.m4
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/mb_c_source.m4	Wed Aug 13 02:11:55 2008 +0800
+++ b/tools/mb_c_source.m4	Wed Aug 13 02:17:19 2008 +0800
@@ -78,8 +78,7 @@
 ]])
 
 define([S_ADD_COORD],[[
-    obj->$1 = (coord_t *)malloc(sizeof(coord_t));
-    coord_init(obj->$1, obj->$2);
+    obj->$1 = rdman_coord_new(rdman, obj->$2);
 ]])
 
 define([S_FILL_SHAPE_WITH_PAINT],[dnl