# HG changeset patch # User Thinker K.F. Li # Date 1278559798 -28800 # Node ID 0f0abc48e10a9051da5490ebaf168dcb521a6095 # Parent 9c5705da2495762bea35fd46a99a2bd767c824e3 mbe_new_path() for OpenVG diff -r 9c5705da2495 -r 0f0abc48e10a include/mb_graph_engine_openvg.h --- a/include/mb_graph_engine_openvg.h Wed Jul 07 23:19:57 2010 +0800 +++ b/include/mb_graph_engine_openvg.h Thu Jul 08 11:29:58 2010 +0800 @@ -45,7 +45,8 @@ #define mbe_text_path(canvas, utf8) #define mbe_rectangle(canvas, x, y, w, h) #define mbe_in_stroke(canvas, x, y) (0) -#define mbe_new_path(canvas) +#define mbe_new_path(canvas) \ + vgClearPath((canvas)->path, VG_PATH_CAPABILITY_ALL) #define mbe_curve_to(canvas, x1, y1, x2, y2, x3, y3) #define mbe_restore(canvas) #define mbe_move_to(canvas, x, y)