From 6839870055b67b0f90a49d43a3970be25a051205 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Fri, 4 Jun 2021 17:17:41 +0200 Subject: [PATCH] Fixed bug with Line (sdlui.Renderer). --- sdlui/renderer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {