diff options
Diffstat (limited to 'src/cairo-skia-surface.cpp')
-rw-r--r-- | src/cairo-skia-surface.cpp | 9 |
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, |