Commit 2e48864d authored by Caleb Michael Moore's avatar Caleb Michael Moore

cairo gradient spread repeat

parent bc3d864b
......@@ -100,6 +100,11 @@ _set_source_rsvg_linear_gradient (cairo_t *cr,
cairo_matrix_invert (&matrix);
cairo_pattern_set_matrix (pattern, &matrix);
if (linear->spread == RSVG_GRADIENT_REFLECT)
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REFLECT);
else if (linear->spread == RSVG_GRADIENT_REPEAT)
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT);
_pattern_add_rsvg_color_stops (pattern, linear->super.children,
current_color_rgb, opacity);
......@@ -142,6 +147,11 @@ _set_source_rsvg_radial_gradient (cairo_t *cr,
cairo_matrix_invert (&matrix);
cairo_pattern_set_matrix (pattern, &matrix);
if (radial->spread == RSVG_GRADIENT_REFLECT)
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REFLECT);
else if (radial->spread == RSVG_GRADIENT_REPEAT)
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT);
_pattern_add_rsvg_color_stops (pattern, radial->super.children,
current_color_rgb, opacity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment