grad_geom.w = vg_data->view_box.w;
grad_geom.h = vg_data->view_box.h;
-#ifndef HAVE_THORVG
efl_gfx_path_bounds_get(grad_obj, &grad_geom);
-#endif
double cy = ((double) grad_geom.h) * 0.5 + grad_geom.y;
double cy_scaled = (((double) grad_geom.h) * 0.5) * scale_reversed_Y;
return;
}
- // apply the fill style property
-#ifndef HAVE_THORVG
- //FIX_TVG:: replace?
- style->fill.fill_rule = efl_gfx_shape_fill_rule_get(vg);
-#endif
+ evas_vg_shape_fill_rule_get(vg, (Evas_Vg_Fill_Rule*)&style->fill.fill_rule);
style->fill.paint.none = EINA_FALSE;
if (efl_canvas_vg_shape_fill_get(vg))
evas_vg_shape_path_length_get(vg, &commands_count, &points_count);
svg_node->node.command.commands_count = commands_count;
svg_node->node.command.points_count = points_count;
-#ifdef HAVE_THORVG
svg_node->node.command.commands = (Evas_Vg_Path_Command *) commands;
svg_node->node.command.points = (double *) points;
-#else
- svg_node->node.command.points = calloc(points_count, sizeof(double));
- svg_node->node.command.commands = calloc(commands_count, sizeof(Evas_Vg_Path_Command));
- memcpy(svg_node->node.command.commands, commands, sizeof (Evas_Vg_Path_Command) * commands_count);
- memcpy(svg_node->node.command.points, points, sizeof (double) * points_count);
-#endif
_apply_svg_property(svg_node, vg);
}
}