Fixed bug with Line (sdlui.Renderer).
This commit is contained in:
parent
3c89748eac
commit
6839870055
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user