Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/src/event.c Wed Nov 19 20:54:27 2008 +0800 +++ b/src/event.c Tue Dec 09 17:34:10 2008 +0800 @@ -52,14 +52,14 @@ } static void draw_shape_path(shape_t *shape, cairo_t *cr) { - switch(shape->sh_type) { - case SHT_PATH: + switch(MBO_TYPE(shape)) { + case MBO_PATH: sh_path_draw(shape, cr); break; - case SHT_TEXT: + case MBO_TEXT: sh_text_draw(shape, cr); break; - case SHT_RECT: + case MBO_RECT: sh_rect_draw(shape, cr); break; }