diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-11-02 21:48:29 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-11-02 21:48:29 +0100 |
commit | dab1a04fbefa62a3d29350a263d444de8e461136 (patch) | |
tree | c07c12a267eb4c437088811a05993bb0d76330c2 | |
parent | 5a9a28d31c41ec0a9188d105e60f738950faf965 (diff) |
revert linear upside-down gradientswip/gl2
-rw-r--r-- | src/cairo-gl-composite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c index c0d4519fa..4bb15d65c 100644 --- a/src/cairo-gl-composite.c +++ b/src/cairo-gl-composite.c @@ -184,9 +184,11 @@ _cairo_gl_gradient_operand_init (cairo_gl_operand_t *operand, dy *= invden; cairo_matrix_transform_point (&matrix, &x0, &y0); + y0 -= dst->height; + y0 = -y0; operand->linear.dx = dx * pattern->matrix.xx + dy * pattern->matrix.yx; - operand->linear.dy = dx * pattern->matrix.xy + dy * pattern->matrix.yy; + operand->linear.dy = -dx * pattern->matrix.xy - dy * pattern->matrix.yy; operand->linear.off = -(x0 * operand->linear.dx + y0 * operand->linear.dy); operand->linear.extend = pattern->extend; |