comparison src/coord.c @ 196:c234ee745ceb

Start moving to mb_obj_t
author Thinker K.F. Li <thinker@branda.to>
date Tue, 09 Dec 2008 17:34:10 +0800
parents 530bb7728546
children 29e1b2bffe4c
comparison
equal deleted inserted replaced
195:5235aded379c 196:c234ee745ceb
88 if(parent) { 88 if(parent) {
89 /* insert at tail of children list. */ 89 /* insert at tail of children list. */
90 co->parent = parent; 90 co->parent = parent;
91 STAILQ_INS_TAIL(parent->children, coord_t, sibling, co); 91 STAILQ_INS_TAIL(parent->children, coord_t, sibling, co);
92 } 92 }
93 MBO_TYPE(co) = MBO_COORD;
93 co->matrix[0] = 1; 94 co->matrix[0] = 1;
94 co->matrix[4] = 1; 95 co->matrix[4] = 1;
95 co->aggr_matrix[0] = 1; 96 co->aggr_matrix[0] = 1;
96 co->aggr_matrix[4] = 1; 97 co->aggr_matrix[4] = 1;
97 co->cur_area = &co->areas[0]; 98 co->cur_area = &co->areas[0];