dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 588172d944b4b395f65591b716f035218f13f482
parent e2688e6494aaa5e14cb4673a6abacd85157ce727
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 27 May 2023 23:29:35 -0700

cleanup

Diffstat:
Mpkg/captcha/image.go | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/pkg/captcha/image.go b/pkg/captcha/image.go @@ -555,9 +555,7 @@ func (m *Image) renderUselessLines() { m.c.SetStrokeStyle(grad) m.c.SetDash(5, 3) m.c.SetLineWidth(1) - m.c.MoveTo(pt1.GetX(), pt1.GetY()) - m.c.CubicTo(pt1.GetX()+d, pt1.GetY()+d, pt2.GetX()-d, pt2.GetY()-d, pt2.GetX(), pt2.GetY()) - m.c.Stroke() + m.strokeCubicLine(pt1, pt2, d) } for i := 0; i < 3; i++ { if m.RandInt(0, 1) == 0 { @@ -572,9 +570,7 @@ func (m *Image) renderUselessLines() { m.c.SetStrokeStyle(grad) m.c.SetDash(5, 3) m.c.SetLineWidth(1) - m.c.MoveTo(pt1.GetX(), pt1.GetY()) - m.c.CubicTo(pt1.GetX()+d, pt1.GetY()+d, pt2.GetX()-d, pt2.GetY()-d, pt2.GetX(), pt2.GetY()) - m.c.Stroke() + m.strokeCubicLine(pt1, pt2, d) } }) }