Compare commits

..

1 Commits

View File

@ -375,12 +375,12 @@ func (r *Renderer) Line(p, q geom.PointF32, color color.Color, thickness float32
}
func (r *Renderer) Location() geom.Point {
x, y := r.renderer.GetPosition()
x, y := r.window.GetPosition()
return geom.Pt(int(x), int(y))
}
func (r *Renderer) Move(to geom.Point) {
r.renderer.SetPosition(int32(to.X), int32(to.Y))
r.window.SetPosition(int32(to.X), int32(to.Y))
}
func (r *Renderer) Rectangle(rect geom.RectangleF32, c color.Color, thickness float32) {