# HG changeset patch # User Thinker K.F. Li # Date 1279269593 -28800 # Node ID e4138c12fa8c81c1b6760217489da8ba044e425c # Parent 39bd74da7f928fa65f971ae5a11a4134348463c9 Call mbe_vg_win_surface_create() in X_supp.c when with OpenVG diff -r 39bd74da7f92 -r e4138c12fa8c configure.ac --- a/configure.ac Fri Jul 09 11:50:48 2010 +0800 +++ b/configure.ac Fri Jul 16 16:39:53 2010 +0800 @@ -126,7 +126,7 @@ # Define AM and AC variable for X_supp AM_CONDITIONAL([X_SUPP], [test x$X_supp = xtrue -a x$cairo = xtrue]) -[if [ x"${X_supp}" = xtrue -a x"${cairo}" = xtrue ]; then] +[if [ x"${X_supp}" = xtrue -a \( x"${cairo}" = xtrue -o x"${openvg}" = xtrue \) ]; then] AC_DEFINE([X_SUPP]) [fi] diff -r 39bd74da7f92 -r e4138c12fa8c src/X_supp.c --- a/src/X_supp.c Fri Jul 09 11:50:48 2010 +0800 +++ b/src/X_supp.c Fri Jul 16 16:39:53 2010 +0800 @@ -475,11 +475,19 @@ xmb_rt->surface_ptn = mbe_pattern_create_for_surface(xmb_rt->surface); +#ifdef OPENVG_GRAPH_ENGINE + xmb_rt->backend_surface = + mbe_vg_win_surface_create(xmb_rt->display, + xmb_rt->win, + xmb_rt->visual, + w, h); +#else xmb_rt->backend_surface = mbe_xlib_surface_create(xmb_rt->display, xmb_rt->win, xmb_rt->visual, w, h); +#endif xmb_rt->cr = mbe_create(xmb_rt->surface); xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface);