summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index 02d93c39df..a5583028e6 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -65,17 +65,19 @@ _ector_software_surface_surface_get(Eo *obj EINA_UNUSED,
65 *height = pd->software->fill_data.raster_buffer.height; 65 *height = pd->software->fill_data.raster_buffer.height;
66} 66}
67 67
68static void 68static Eo *
69_ector_software_surface_eo_base_constructor(Eo *obj, 69_ector_software_surface_eo_base_constructor(Eo *obj,
70 Ector_Software_Surface_Data *pd EINA_UNUSED) 70 Ector_Software_Surface_Data *pd EINA_UNUSED)
71{ 71{
72 eo_do_super(obj, ECTOR_SOFTWARE_SURFACE_CLASS, eo_constructor()); 72 obj = eo_do_super_ret(obj, ECTOR_SOFTWARE_SURFACE_CLASS, obj, eo_constructor());
73 if(_software_count == 0) 73 if(_software_count == 0)
74 { 74 {
75 pd->software = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer)); 75 pd->software = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer));
76 ector_software_rasterizer_init(pd->software); 76 ector_software_rasterizer_init(pd->software);
77 } 77 }
78 _software_count++; 78 _software_count++;
79
80 return obj;
79} 81}
80 82
81static void 83static void