Mercurial > MadButterfly
diff src/event.c @ 1098:cb4a2ffdf9e8
Merge HEAD
author | wycc |
---|---|
date | Sat, 04 Dec 2010 16:58:25 +0800 |
parents | cf82361fe5b9 |
children | bae104d8d247 |
line wrap: on
line diff
--- a/src/event.c Sat Dec 04 07:43:51 2010 +0800 +++ b/src/event.c Sat Dec 04 16:58:25 2010 +0800 @@ -697,6 +697,11 @@ static void _draw_to_mask(shape_t *shape, mbe_t *cr) { + /* TODO: Find a new algorithm to check if a point is in the area + * covered by a shape. This function is expected to work with + * _fill_and_check() to detect a collision. + */ +#if 0 if(sh_get_flags(shape, GEF_OV_DRAW)) return; @@ -704,10 +709,12 @@ mbe_clip(cr); sh_set_flags(shape, GEF_OV_DRAW); +#endif } static int _fill_and_check(shape_t *shape, mbe_t *cr) { +#if 0 int h, stride; mbe_surface_t *surface; unsigned char *data; @@ -729,6 +736,9 @@ } return FALSE; +#else + return TRUE; +#endif } /*! \brief Is a mb_obj_t overlaid with another mb_obj_t and