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

checker: handle bad $if values

This commit is contained in:
Alexander Medvednikov
2020-10-18 21:22:37 +02:00
parent 30214a7700
commit 396dca7f48
3 changed files with 13 additions and 8 deletions

View File

@@ -308,7 +308,10 @@ pub fn (ctx &Context) draw_circle_line(x f32, y f32, r int, segments int, c gx.C
sgl.end()
}
pub fn (ctx &Context) draw_circle(x f32, y f32, r int, segments int, c gx.Color) {
pub fn (ctx &Context) draw_circle(x f32, y f32, r int, c gx.Color) {
ctx.draw_circle_with_segments(x,y,r,10, c)
}
pub fn (ctx &Context) draw_circle_with_segments(x f32, y f32, r int, segments int, c gx.Color) {
if c.a != 255 {
sgl.load_pipeline(ctx.timage_pip)
}