evas vg: fix the final stroke color in the interpolation process 38/256038/2
authorMira Grudzinska <m.grudzinska@samsung.com>
Sun, 28 Mar 2021 22:18:32 +0000 (00:18 +0200)
committerHermet Park <chuneon.park@samsung.com>
Mon, 29 Mar 2021 06:22:44 +0000 (06:22 +0000)
When ThorVG used, the final stroke color in the interpolation
was the same as the initial one.

Change-Id: I24ef66ab1964f36942a393f9c81eb62a2cb3e09d

src/lib/evas/canvas/efl_canvas_vg_shape.c

index 1569e7f..c4d9b15 100644 (file)
@@ -440,7 +440,7 @@ _shape_properties_interpolate(Evas_Vg_Shape *obj,
 
    // Stroke - color
    tvg_shape_get_stroke_color(sd_from->shape, (uint8_t*)&r, (uint8_t*)&g, (uint8_t*)&b, (uint8_t*)&a);
-   tvg_shape_get_stroke_color(sd_from->shape, (uint8_t*)&to_r, (uint8_t*)&to_g, (uint8_t*)&to_b, (uint8_t*)&to_a);
+   tvg_shape_get_stroke_color(sd_to->shape, (uint8_t*)&to_r, (uint8_t*)&to_g, (uint8_t*)&to_b, (uint8_t*)&to_a);
    a = _interpolate(a, to_a, pos_map);
    r = _interpolate(r, to_r, pos_map);
    g = _interpolate(g, to_g, pos_map);