Mercurial > MadButterfly
changeset 1109:77596f3d8d0c
Minor changes on OpenVG graphic engine
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 07 Dec 2010 12:42:41 +0800 |
parents | 236a47079c2b |
children | 851a062368bd |
files | include/mb_graph_engine_openvg.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)