From: Mira Grudzinska Date: Sun, 28 Mar 2021 22:18:32 +0000 (+0200) Subject: evas vg: fix the final stroke color in the interpolation process X-Git-Tag: submit/tizen/20210401.064607~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a84ddbde7714eeed6924d5f9334df46b2702eb63;p=platform%2Fupstream%2Fefl.git evas vg: fix the final stroke color in the interpolation process When ThorVG used, the final stroke color in the interpolation was the same as the initial one. Change-Id: I24ef66ab1964f36942a393f9c81eb62a2cb3e09d --- diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c index 1569e7f..c4d9b15 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_shape.c +++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c @@ -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);