comparison 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
comparison
equal deleted inserted replaced
593:ac942664fe86 594:d416e1fff71a
111 cairo_surface_t *surf; 111 cairo_surface_t *surf;
112 cairo_pattern_t *ptn; 112 cairo_pattern_t *ptn;
113 113
114 surf = cairo_get_target(src); 114 surf = cairo_get_target(src);
115 ptn = cairo_pattern_create_for_surface(surf); 115 ptn = cairo_pattern_create_for_surface(surf);
116 cairo_set_source(src, ptn); 116 cairo_set_source(dst, ptn);
117 cairo_pattern_destroy(ptn); 117 cairo_pattern_destroy(ptn);
118 saved_op = cairo_get_operator(dst); 118 saved_op = cairo_get_operator(dst);
119 cairo_set_operator(dst, CAIRO_OPERATOR_SOURCE); 119 cairo_set_operator(dst, CAIRO_OPERATOR_SOURCE);
120 cairo_paint(dst); 120 cairo_paint(dst);
121 cairo_set_operator(dst, saved_op); 121 cairo_set_operator(dst, saved_op);