ector: set the transformation matrix before any translation !

This commit is contained in:
Cedric BAIL 2015-04-03 16:33:04 +02:00
parent 084fb9f87e
commit cb1226ad41
1 changed files with 2 additions and 2 deletions

View File

@ -166,10 +166,10 @@ _ector_renderer_cairo_base_ector_renderer_generic_base_draw(Eo *obj,
a = ((double)((pd->generic->color.a * A_VAL(&mul_col)) >> 8)) / 255;
cairo_set_operator(pd->parent->cairo, cop);
cairo_translate(pd->parent->cairo, pd->generic->origin.x - x, pd->generic->origin.y - y);
cairo_set_source_rgba(pd->parent->cairo, r, g, b, a);
if (pd->m) cairo_transform(pd->parent->cairo, pd->m);
else cairo_transform(pd->parent->cairo, &identity);
cairo_translate(pd->parent->cairo, pd->generic->origin.x - x, pd->generic->origin.y - y);
cairo_set_source_rgba(pd->parent->cairo, r, g, b, a);
return EINA_TRUE;
}