comparison src/shape_rect.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
25 if(rect == NULL) 25 if(rect == NULL)
26 return NULL; 26 return NULL;
27 27
28 memset(rect, 0, sizeof(sh_rect_t)); 28 memset(rect, 0, sizeof(sh_rect_t));
29 29
30 rect->shape.sh_type = SHT_RECT; 30 MBO_TYPE(rect) = MBO_RECT;
31 rect->x = x; 31 rect->x = x;
32 rect->y = y; 32 rect->y = y;
33 rect->w = w; 33 rect->w = w;
34 rect->h = h; 34 rect->h = h;
35 rect->rx = rx; 35 rect->rx = rx;