diff include/mb_graph_engine_cairo.h @ 594:d416e1fff71a openvg

Fix bug of mbe_copy_source() of cairo. Must install pattern as source on target canvas instead of source canvas.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 30 Jun 2010 23:15:42 +0800
parents b42d69ab8857
children 28aa5e53abaa
line wrap: on
line diff
--- a/include/mb_graph_engine_cairo.h	Wed Jun 30 22:57:23 2010 +0800
+++ b/include/mb_graph_engine_cairo.h	Wed Jun 30 23:15:42 2010 +0800
@@ -113,7 +113,7 @@
     
     surf = cairo_get_target(src);
     ptn = cairo_pattern_create_for_surface(surf);
-    cairo_set_source(src, ptn);
+    cairo_set_source(dst, ptn);
     cairo_pattern_destroy(ptn);
     saved_op = cairo_get_operator(dst);
     cairo_set_operator(dst, CAIRO_OPERATOR_SOURCE);