Mercurial > MadButterfly
diff src/event.c @ 408:7f7855df2af0
Make unittest built by automake and autoconf.
./configure --enable-testcase to build testcase.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 07 Jul 2009 22:46:19 +0800 |
parents | 6c350fc92ae3 |
children | 1ee11bab38fa |
line wrap: on
line diff
--- a/src/event.c Tue Jul 07 22:45:12 2009 +0800 +++ b/src/event.c Tue Jul 07 22:46:19 2009 +0800 @@ -116,7 +116,7 @@ (w) += (s) - (a); \ (s) = (a); \ } else { \ - (w) = MAX(w, (a) - (s) + 1); \ + (w) = MB_MAX(w, (a) - (s) + 1); \ } \ } while(0) @@ -155,7 +155,8 @@ MBO_SHAPES=0x1000, MBO_PATH, MBO_TEXT, - MBO_RECT + MBO_RECT, + MBO_IMAGE }; #define MBO_TYPE(x) (((mb_obj_t *)(x))->obj_type) #define IS_MBO_SHAPES(x) (((mb_obj_t *)(x))->obj_type & MBO_SHAPES)