changeset 617:89fee368e367 openvg

Set (stroke) line width for OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Thu, 08 Jul 2010 11:56:30 +0800
parents 7d70a811829b
children 35a67a837a53
files include/mb_graph_engine_openvg.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include/mb_graph_engine_openvg.h	Thu Jul 08 11:37:33 2010 +0800
+++ b/include/mb_graph_engine_openvg.h	Thu Jul 08 11:56:30 2010 +0800
@@ -27,7 +27,11 @@
 #define mbe_get_scaled_font(canvas) ((mbe_scaled_font_t *)NULL)
 #define mbe_query_font_face(family, slant, weight) ((mbe_font_face_t *)NULL)
 #define mbe_free_font_face(face)
-#define mbe_set_line_width(canvas, w)
+#define mbe_set_line_width(canvas, w)		\
+    do {					\
+	_MK_CURRENT_CTX(canvas);		\
+	vgSetf(VG_STROKE_LINE_WIDTH, w);	\
+    } while(0)
 #define mbe_set_source_rgb(canvas, r, g, b)	\
     mbe_set_source_rgba(canvas, r, g, b, 1)
 #define mbe_get_font_face(canvas) ((mbe_font_face_t *)NULL)