comparison src/event.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 527894c2ad39
comparison
equal deleted inserted replaced
195:5235aded379c 196:c234ee745ceb
50 50
51 return OK; 51 return OK;
52 } 52 }
53 53
54 static void draw_shape_path(shape_t *shape, cairo_t *cr) { 54 static void draw_shape_path(shape_t *shape, cairo_t *cr) {
55 switch(shape->sh_type) { 55 switch(MBO_TYPE(shape)) {
56 case SHT_PATH: 56 case MBO_PATH:
57 sh_path_draw(shape, cr); 57 sh_path_draw(shape, cr);
58 break; 58 break;
59 case SHT_TEXT: 59 case MBO_TEXT:
60 sh_text_draw(shape, cr); 60 sh_text_draw(shape, cr);
61 break; 61 break;
62 case SHT_RECT: 62 case MBO_RECT:
63 sh_rect_draw(shape, cr); 63 sh_rect_draw(shape, cr);
64 break; 64 break;
65 } 65 }
66 } 66 }
67 67