diff --git a/sdlui/renderer.go b/sdlui/renderer.go index 2bd19b2..1558eb2 100644 --- a/sdlui/renderer.go +++ b/sdlui/renderer.go @@ -367,7 +367,7 @@ func (r *Renderer) FillRectangle(rect geom.RectangleF32, c color.Color) { func (r *Renderer) Line(p, q geom.PointF32, color color.Color, thickness float32) { r.SetDrawColorGo(color) - r.renderer.DrawLineF(p.X, p.Y, p.X, p.Y) + r.renderer.DrawLineF(p.X, p.Y, q.X, q.Y) } func (r *Renderer) Rectangle(rect geom.RectangleF32, c color.Color, thickness float32) {