# HG changeset patch # User Thinker K.F. Li # Date 1291696961 -28800 # Node ID 77596f3d8d0c7ff2f4213a6680cea0fa394411bb # Parent 236a47079c2bb64bb87b77bec775c4fff04f5c3f Minor changes on OpenVG graphic engine diff -r 236a47079c2b -r 77596f3d8d0c include/mb_graph_engine_openvg.h --- a/include/mb_graph_engine_openvg.h Mon Dec 06 12:51:42 2010 +0800 +++ b/include/mb_graph_engine_openvg.h Tue Dec 07 12:42:41 2010 +0800 @@ -12,8 +12,8 @@ * @{ */ #define mbe_scaled_font_text_extents(scaled, utf8, extents) -#define mbe_image_surface_get_stride(surface) (20) -#define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0) +#define mbe_image_surface_get_stride(surface) ((surface)->w * 4) +#define mbe_image_surface_get_format(surface) ((surface)->fmt) #define mbe_image_surface_get_height(surface) (surface)->h #define mbe_image_surface_get_width(surface) (surface)->w #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL)