From 99d82cc0ee1e26e8f863080a6a075ca7eb72eb0f Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Thu, 5 Nov 2020 12:51:59 +0100 Subject: [PATCH] evas vector: Fixed tvg_paint_set_opacity usage. Commit fixes invalid variable used in tvg_paint_set_opacity method. This cause issue with invalid opacity value in shapes. Change-Id: I44cf433e006a19955828c7972b84c935c046309c --- src/lib/evas/canvas/efl_canvas_vg_shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c index 5f33b30..398c563 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_shape.c +++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c @@ -698,7 +698,7 @@ _efl_canvas_vg_shape_render_pre_tvg(EINA_UNUSED Evas_Object_Protected_Data *vg_p efl_gfx_color_get(obj, &r, &g, &b, &a); tvg_shape_set_fill_color(sd->shape, r, g, b, a); uint8_t opacity = nd->visibility ? 255 : 0; - tvg_paint_set_opacity(sd->shape, nd->visibility); + tvg_paint_set_opacity(sd->shape, opacity); tvg_canvas_update_paint((Tvg_Canvas *) canvas, sd->shape); } #endif -- 2.7.4