aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-03 16:34:06 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:34:06 +0200
commit26d8641381093828b586e760328bf770a2046bdd (patch)
tree472bbeb7715619accd68eae5da4e9e28c9a38b5e /src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
parentector: use line width, join and cap style while stoking the path for Cairo ba... (diff)
downloadefl-26d8641381093828b586e760328bf770a2046bdd.tar.gz
ector: gradient now uses spread while filling a shape for Cairo backend.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c')
-rw-r--r--src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
index b20256e93f..cb84c53e38 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
@@ -23,6 +23,8 @@ static void (*cairo_pattern_add_color_stop_rgba)(cairo_pattern_t *pattern, doubl
double red, double green, double blue, double alpha) = NULL;
static void (*cairo_pattern_destroy)(cairo_pattern_t *pattern) = NULL;
+typedef enum _cairo_extend_t{cairo_extend}cairo_extend_t;
+static void (*cairo_pattern_set_extend)(cairo_pattern_t *pattern, cairo_extend_t extend) = NULL;
// FIXME: as long as it is not possible to directly access the parent structure
// this will be duplicated from the linear gradient renderer
@@ -58,6 +60,9 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *ob
gd->colors[i].r, gd->colors[i].g,
gd->colors[i].b, gd->colors[i].a);
+ USE(obj, cairo_pattern_set_extend, EINA_FALSE);
+ cairo_pattern_set_extend(pd->pat, gd->s);
+
if (!pd->parent)
{
Eo *parent;