diff src/X_supp.c @ 626:e4138c12fa8c openvg

Call mbe_vg_win_surface_create() in X_supp.c when with OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Fri, 16 Jul 2010 16:39:53 +0800
parents d416e1fff71a
children bd18951b51d5
line wrap: on
line diff
--- 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);