diff --git a/graphics.go b/graphics.go index 7ed1e90..b39a011 100644 --- a/graphics.go +++ b/graphics.go @@ -35,8 +35,8 @@ func (s *Sprite) SetPicture(pic Picture) { var ( center = s.bounds.Center() - horizontal = V(s.bounds.W()/2, 0) - vertical = V(0, s.bounds.H()/2) + horizontal = X(s.bounds.W() / 2) + vertical = Y(s.bounds.H() / 2) ) (*s.tri)[0].Position = -horizontal - vertical