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:
@ -658,6 +658,10 @@ pub fn (ctx &Context) draw_arc_empty(x f32, y f32, inner_radius f32, thickness f
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.a != 255 {
|
||||||
|
sgl.load_pipeline(ctx.timage_pip)
|
||||||
|
}
|
||||||
|
|
||||||
mut a1 := start_angle
|
mut a1 := start_angle
|
||||||
mut a2 := end_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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.a != 255 {
|
||||||
|
sgl.load_pipeline(ctx.timage_pip)
|
||||||
|
}
|
||||||
|
|
||||||
mut a1 := start_angle
|
mut a1 := start_angle
|
||||||
mut a2 := end_angle
|
mut a2 := end_angle
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user