diff include/mb_graph_engine_openvg.h @ 1095:bced6fe39856

Fix position (collision) detection for OpenVG. We still have no way to check if a point is in the fill area of a shape for OpenVG. So, we only use current area (rectangle) of a shape to determine it. So, mbe_in_fill() of OpenVG always return true.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 04 Dec 2010 13:48:43 +0800
parents e9d8194fcff0
children 77596f3d8d0c
line wrap: on
line diff
--- a/include/mb_graph_engine_openvg.h	Sat Dec 04 12:40:04 2010 +0800
+++ b/include/mb_graph_engine_openvg.h	Sat Dec 04 13:48:43 2010 +0800
@@ -74,7 +74,7 @@
 	char _vg_cmd = VG_LINE_TO_ABS;					\
 	vgAppendPathData((canvas)->path, 1, &_vg_cmd, _vg_data);	\
     } while(0)
-#define mbe_in_fill(canvas, x, y) (0)
+#define mbe_in_fill(canvas, x, y) (1)
 /* TODO: change prototype of mbe_arc() to remove mbe_save() and
  *	 mbe_restore().
  */