1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: fix draw arch functions alpha color (#14850)

This commit is contained in:
Emirhan Yener 2022-06-26 00:03:43 +03:00 committed by GitHub
parent d7f962ef6e
commit d42aadda0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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