summaryrefslogtreecommitdiff
path: root/src/cairo-skia-surface.cpp
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2011-06-20 01:53:48 +0200
committerCyril Brulebois <kibi@debian.org>2011-06-20 01:53:48 +0200
commit33cc97022c22336d56b8875d041b55877199e9e7 (patch)
tree4d31aabc4d13416d59b4acc1934c16eb973eddad /src/cairo-skia-surface.cpp
parent71431660470357a652819295118cb92d0e5d0e80 (diff)
Import upstream release 1.11.21.11.2upstream-experimental
Diffstat (limited to 'src/cairo-skia-surface.cpp')
-rw-r--r--src/cairo-skia-surface.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cairo-skia-surface.cpp b/src/cairo-skia-surface.cpp
index 8ce5a76..537c1bc 100644
--- a/src/cairo-skia-surface.cpp
+++ b/src/cairo-skia-surface.cpp
@@ -356,10 +356,10 @@ pattern_to_sk_shader (cairo_skia_surface_t *dst, const cairo_pattern_t *pattern,
cairo_linear_pattern_t *linear = (cairo_linear_pattern_t *) gradient;
SkPoint points[2];
- points[0].set (CAIRO_FIXED_TO_SK_SCALAR (linear->p1.x),
- CAIRO_FIXED_TO_SK_SCALAR (linear->p1.y));
- points[1].set (CAIRO_FIXED_TO_SK_SCALAR (linear->p2.x),
- CAIRO_FIXED_TO_SK_SCALAR (linear->p2.y));
+ points[0].set (SkFloatToScalar (linear->pd1.x),
+ SkFloatToScalar (linear->pd1.y));
+ points[1].set (SkFloatToScalar (linear->pd2.x),
+ SkFloatToScalar (linear->pd2.y));
shader = SkGradientShader::CreateLinear (points, colors, pos, gradient->n_stops,
extend_to_sk (pattern->extend));
} else {
@@ -500,7 +500,6 @@ path_to_sk (cairo_path_fixed_t *path,
data.matrix = mat;
status = _cairo_path_fixed_interpret (path,
- CAIRO_DIRECTION_FORWARD,
cpc_move_to,
cpc_line_to,
cpc_curve_to,