[PATCH] gl: fix the translate value in copy_boxes.

Chuanbo Weng <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
It fixes 36 cases (such as push-group-color etc.) in cairo-test-suite.
---
 src/cairo-gl-spans-compositor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-gl-spans-compositor.c b/src/cairo-gl-spans-compositor.c
index 8c83a43..0c2134f 100644
--- a/src/cairo-gl-spans-compositor.c
+++ b/src/cairo-gl-spans-compositor.c
@@ -328,7 +328,7 @@ static cairo_int_status_t copy_boxes (void *_dst,
         goto FAIL;
 
     _cairo_gl_composite_set_source_operand (&setup, source_to_operand (src));
-    _cairo_gl_operand_translate (&setup.src, dx, dy);
+    _cairo_gl_operand_translate (&setup.src, -dx, -dy);
 
     status = _cairo_gl_composite_begin (&setup, &ctx);
     if (unlikely (status))
-- 
1.7.5.4

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.