From d42aadda0ff50e14dcb910f87912c7db1dd23019 Mon Sep 17 00:00:00 2001 From: Emirhan Yener <97049246+emirhanyener@users.noreply.github.com> Date: Sun, 26 Jun 2022 00:03:43 +0300 Subject: [PATCH] gg: fix draw arch functions alpha color (#14850) --- vlib/gg/draw.c.v | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vlib/gg/draw.c.v b/vlib/gg/draw.c.v index 31b531c8f7..659f34b7ba 100644 --- a/vlib/gg/draw.c.v +++ b/vlib/gg/draw.c.v @@ -658,6 +658,10 @@ pub fn (ctx &Context) draw_arc_empty(x f32, y f32, inner_radius f32, thickness f return } + if c.a != 255 { + sgl.load_pipeline(ctx.timage_pip) + } + mut a1 := start_angle mut a2 := end_angle @@ -721,6 +725,10 @@ pub fn (ctx &Context) draw_arc_filled(x f32, y f32, inner_radius f32, thickness return } + if c.a != 255 { + sgl.load_pipeline(ctx.timage_pip) + } + mut a1 := start_angle mut a2 := end_angle