typedef struct _cairo_surface_t cairo_surface_t;
+static void (*cairo_translate)(cairo_t *cr, double tx, double ty) = NULL;
static void (*cairo_destroy)(cairo_t *cr) = NULL;
static cairo_surface_t *(*cairo_image_surface_create)(int format,
int width,
}
static Eina_Bool
-_ector_renderer_software_shape_ector_renderer_generic_base_draw(Eo *obj, Ector_Renderer_Software_Shape_Data *pd, Ector_Rop op, Eina_Array *clips, unsigned int mul_col)
+_ector_renderer_software_shape_ector_renderer_generic_base_draw(Eo *obj EINA_UNUSED, Ector_Renderer_Software_Shape_Data *pd, Ector_Rop op, Eina_Array *clips, unsigned int mul_col)
{
int x, y;
}
static void
-eng_ector_renderer_draw(void *data, void *context EINA_UNUSED, void *surface, Ector_Renderer *renderer, Eina_Array *clips, int x, int y, Eina_Bool do_async EINA_UNUSED)
+eng_ector_renderer_draw(void *data, void *context EINA_UNUSED, void *surface, Ector_Renderer *renderer, Eina_Array *clips, Eina_Bool do_async EINA_UNUSED)
{
Evas_GL_Image *dst = surface;
Evas_Engine_GL_Context *gc;
if (use_cairo)
{
eo_do(_software_ector,
- ector_cairo_software_surface_set(software_buffer, w, h));
+ ector_cairo_software_surface_set(software_buffer, w, h),
+ ector_surface_reference_point_set(x, y));
}
else
{
eo_do(_software_ector,
- ector_software_surface_set(software_buffer, w, h));
+ ector_software_surface_set(software_buffer, w, h),
+ ector_surface_reference_point_set(x, y));
}
}