Mercurial > MadButterfly
changeset 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 | 613a7caa9bd6 |
children | c18ad321844d |
files | include/mb_graph_engine_openvg.h nodejs/run.sh |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
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(). */