summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_gradient_radial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_gradient_radial.c')
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_radial.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_radial.c b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
index 6f7f5dd..64d0a9d 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_radial.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
@@ -76,7 +76,7 @@ Eo *
76_ector_renderer_software_gradient_radial_eo_base_constructor(Eo *obj, 76_ector_renderer_software_gradient_radial_eo_base_constructor(Eo *obj,
77 Ector_Renderer_Software_Gradient_Data *pd) 77 Ector_Renderer_Software_Gradient_Data *pd)
78{ 78{
79 obj = eo_do_super_ret(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, obj, eo_constructor()); 79 obj = eo_constructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS));
80 pd->gd = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN, obj); 80 pd->gd = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN, obj);
81 pd->gld = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN, obj); 81 pd->gld = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN, obj);
82 82
@@ -97,14 +97,13 @@ _ector_renderer_software_gradient_radial_eo_base_destructor(Eo *obj,
97 eo_data_xunref(obj, pd->gd, obj); 97 eo_data_xunref(obj, pd->gd, obj);
98 eo_data_xunref(obj, pd->gld, obj); 98 eo_data_xunref(obj, pd->gld, obj);
99 99
100 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, eo_destructor()); 100 eo_destructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS));
101} 101}
102 102
103void 103void
104_ector_renderer_software_gradient_radial_efl_gfx_gradient_base_stop_set(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd, const Efl_Gfx_Gradient_Stop *colors, unsigned int length) 104_ector_renderer_software_gradient_radial_efl_gfx_gradient_base_stop_set(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd, const Efl_Gfx_Gradient_Stop *colors, unsigned int length)
105{ 105{
106 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, 106 efl_gfx_gradient_stop_set(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS), colors, length);
107 efl_gfx_gradient_stop_set(colors, length));
108 107
109 destroy_color_table(pd); 108 destroy_color_table(pd);
110} 109}
@@ -114,8 +113,7 @@ _ector_renderer_software_gradient_radial_ector_renderer_generic_base_crc_get(Eo
114{ 113{
115 unsigned int crc; 114 unsigned int crc;
116 115
117 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, 116 crc = ector_renderer_crc_get(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS));
118 crc = ector_renderer_crc_get());
119 117
120 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE); 118 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
121 if (pd->gd->colors_count) 119 if (pd->gd->colors_count)