From ad1510afa000ee80b1bd987062b8e200e596299c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 15 Nov 2020 15:11:43 +0100 Subject: [PATCH] gg: vfmt gg.v --- vlib/gg/gg.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 37cbedade3..77fa57559c 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -310,13 +310,13 @@ pub fn (ctx &Context) draw_circle_line(x f32, y f32, r int, segments int, c gx.C pub fn (ctx &Context) draw_circle(x f32, y f32, r f32, c gx.Color) { if ctx.scale == 1 { - ctx.draw_circle_with_segments(x,y,r,10, c) - } - else { - ctx.draw_circle_with_segments(x*f32(ctx.scale),y*f32(ctx.scale),r*ctx.scale,10, c) - + ctx.draw_circle_with_segments(x, y, r, 10, c) + } else { + ctx.draw_circle_with_segments(x * f32(ctx.scale), y * f32(ctx.scale), r * ctx.scale, + 10, c) } } + pub fn (ctx &Context) draw_circle_with_segments(x f32, y f32, r f32, segments int, c gx.Color) { if c.a != 255 { sgl.load_pipeline(ctx.timage_pip)