comparison src/event.c @ 1098:cb4a2ffdf9e8

Merge HEAD
author wycc
date Sat, 04 Dec 2010 16:58:25 +0800
parents cf82361fe5b9
children bae104d8d247
comparison
equal deleted inserted replaced
1097:52d8bf5d12b4 1098:cb4a2ffdf9e8
695 mbe_destroy(cr); 695 mbe_destroy(cr);
696 } 696 }
697 697
698 static 698 static
699 void _draw_to_mask(shape_t *shape, mbe_t *cr) { 699 void _draw_to_mask(shape_t *shape, mbe_t *cr) {
700 /* TODO: Find a new algorithm to check if a point is in the area
701 * covered by a shape. This function is expected to work with
702 * _fill_and_check() to detect a collision.
703 */
704 #if 0
700 if(sh_get_flags(shape, GEF_OV_DRAW)) 705 if(sh_get_flags(shape, GEF_OV_DRAW))
701 return; 706 return;
702 707
703 draw_shape_path(shape, cr); 708 draw_shape_path(shape, cr);
704 mbe_clip(cr); 709 mbe_clip(cr);
705 710
706 sh_set_flags(shape, GEF_OV_DRAW); 711 sh_set_flags(shape, GEF_OV_DRAW);
712 #endif
707 } 713 }
708 714
709 static 715 static
710 int _fill_and_check(shape_t *shape, mbe_t *cr) { 716 int _fill_and_check(shape_t *shape, mbe_t *cr) {
717 #if 0
711 int h, stride; 718 int h, stride;
712 mbe_surface_t *surface; 719 mbe_surface_t *surface;
713 unsigned char *data; 720 unsigned char *data;
714 int i, sz; 721 int i, sz;
715 722
727 if(data[i]) 734 if(data[i])
728 return TRUE; 735 return TRUE;
729 } 736 }
730 737
731 return FALSE; 738 return FALSE;
739 #else
740 return TRUE;
741 #endif
732 } 742 }
733 743
734 /*! \brief Is a mb_obj_t overlaid with another mb_obj_t and 744 /*! \brief Is a mb_obj_t overlaid with another mb_obj_t and
735 * descendants. 745 * descendants.
736 * 746 *