# HG changeset patch # User Thinker K.F. Li # Date 1291441723 -28800 # Node ID bced6fe39856ad10827f7152745b558250f2befa # Parent 613a7caa9bd65075256b65dfc8dd8205aa7ff402 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. diff -r 613a7caa9bd6 -r bced6fe39856 include/mb_graph_engine_openvg.h --- 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(). */ diff -r 613a7caa9bd6 -r bced6fe39856 nodejs/run.sh --- a/nodejs/run.sh Sat Dec 04 12:40:04 2010 +0800 +++ b/nodejs/run.sh Sat Dec 04 13:48:43 2010 +0800 @@ -17,4 +17,9 @@ DIR=`dirname $1` FNAME=`basename $1` -cd $DIR; node $FNAME +if [ -z "$DEBUG" ]; then + cd $DIR; node $FNAME +else + # DEBUG + cd $DIR; gdb -args node $FNAME +fi