evas vg: fixing the compatibility issue 93/256593/2
authorMira Grudzinska <m.grudzinska@samsung.com>
Wed, 7 Apr 2021 21:23:50 +0000 (23:23 +0200)
committerChun <jykeon@samsung.com>
Thu, 8 Apr 2021 11:00:28 +0000 (11:00 +0000)
According to the standard, after applying arc_to the current control point should
be equal to the current point. This is fixed in Evas + ThorVG by using the cmd_prev
variable, so the value of the current control point, for the compatibility issue,
is set to be the same as in Evas.

Change-Id: I7f3d6510db85dbd18995f158538c9aea544acc73

src/lib/evas/canvas/efl_canvas_vg_shape.c

index 5409afc..6fed124 100644 (file)
@@ -328,7 +328,6 @@ _append_arc_to(Evas_Vg_Shape *obj, double x, double y,
         var.cos_theta1 = cos_theta2;
         var.sin_theta1 = sin_theta2;
      }
-   _assign_current_ctrl_point(sd, ex, ey);
    sd->cmd_prev = PATH_CMD_TYPE_NO_BEZIER;
 }