evas vg: fix compatiblity issue. 34/256434/2
authorPatryk Kaczmarek <patryk.k@partner.samsung.com>
Fri, 2 Apr 2021 09:27:28 +0000 (11:27 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 2 Apr 2021 11:04:20 +0000 (11:04 +0000)
evas_vg_shape_current_get() x,y works differently when tvg works,
this commit fixes x and y positions as it should be

Change-Id: I8953dcfd21767fd7791f5872c0cdd3cb32dce785

src/lib/evas/canvas/efl_canvas_vg_shape.c

index d8ab13e..1971487 100644 (file)
@@ -1446,7 +1446,7 @@ evas_vg_shape_append_circle(Evas_Vg_Shape *obj, double x, double y, double radiu
    if (!sd || !sd->shape) return;
 
    tvg_shape_append_circle(sd->shape, x, y, radius, radius);
-   _assign_current_point(sd, NULL, x, y - radius);
+   _assign_current_point(sd, NULL, x + radius, y);
 #else
    efl_gfx_path_append_circle(obj, x, y, radius);
 #endif