# HG changeset patch # User Thinker K.F. Li # Date 1291204798 -28800 # Node ID cf82361fe5b9d27e2556ba88adfeefad2aa282ec # Parent 1a75a4778515db340eda0343ab1c4cafd635b10c Disable _fill_and_check() for collision detection diff -r 1a75a4778515 -r cf82361fe5b9 src/event.c --- a/src/event.c Wed Dec 01 14:33:57 2010 +0800 +++ b/src/event.c Wed Dec 01 19:59:58 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