evas vector: Fixed tvg_paint_set_opacity usage. 75/246975/2
authorMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Thu, 5 Nov 2020 11:51:59 +0000 (12:51 +0100)
committerHermet Park <chuneon.park@samsung.com>
Mon, 9 Nov 2020 08:14:56 +0000 (08:14 +0000)
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

index 5f33b30..398c563 100644 (file)
@@ -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