aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ector/cairo
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-03 16:34:03 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:34:03 +0200
commitf1e48f8de8b82f376542af8611c4bd1bd5fa76dd (patch)
treea06e6b6e01a7d9f2d924ce9b4d1371e45a6fabee /src/lib/ector/cairo
parentevas : add documentation to legacy vector api's. (diff)
downloadefl-f1e48f8de8b82f376542af8611c4bd1bd5fa76dd.tar.gz
ector: don't draw the gradient if its used as fill object in Cairo backend.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ector/cairo')
-rw-r--r--src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c2
-rw-r--r--src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c b/src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c
index 19f30558a3..1b02c35e66 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c
@@ -70,6 +70,8 @@ _ector_renderer_cairo_gradient_linear_ector_renderer_generic_base_draw(Eo *obj,
Ector_Renderer_Cairo_Gradient_Linear_Data *pd,
Ector_Rop op, Eina_Array *clips, unsigned int mul_col)
{
+ if (pd->pat) return EINA_FALSE;
+
Ector_Renderer_Generic_Gradient_Linear_Data *gld;
// FIXME: don't ignore clipping !
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 521b06da9e..b20256e93f 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
@@ -74,6 +74,8 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *ob
static Eina_Bool
_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_draw(Eo *obj, Ector_Renderer_Cairo_Gradient_Radial_Data *pd, Ector_Rop op, Eina_Array *clips, unsigned int mul_col)
{
+ if (pd->pat) return EINA_FALSE;
+
Ector_Renderer_Generic_Gradient_Radial_Data *gld;
// FIXME: don't ignore clipping !