Fixed bug with Line (sdlui.Renderer).

This commit is contained in:
Sander Schobers 2021-06-04 17:17:41 +02:00
parent 3c89748eac
commit 6839870055

View File

@ -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) {