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

Chuanbo Weng strgnm at gmail.com
Thu May 3 17:53:20 PDT 2012


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



More information about the cairo mailing list