summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-11-17 01:20:22 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-11-19 14:52:10 +0100
commitb2202a50646922134d4ee9dbcc49cd664a395d9b (patch)
tree829ffab957b78cd129f260af81ebb325361673ba /src/lib/ector/software/ector_software_surface.c
parent9c3c402fd634d4c4b5fcc61ef48122ea8c2d2f99 (diff)
ector: don't use parent relationship to get access to the surface for freetype backend.
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index 0391150701..04229200f9 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -19,11 +19,14 @@ _ector_software_surface_ector_generic_surface_renderer_factory_new(Eo *obj,
19 const Eo_Class *type) 19 const Eo_Class *type)
20{ 20{
21 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN) 21 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN)
22 return eo_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, obj); 22 return eo_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL,
23 ector_renderer_surface_set(obj));
23 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN) 24 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN)
24 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, obj); 25 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL,
26 ector_renderer_surface_set(obj));
25 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN) 27 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN)
26 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, obj); 28 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL,
29 ector_renderer_surface_set(obj));
27 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type)); 30 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type));
28 return NULL; 31 return NULL;
29} 32}