diff --git a/graphics.go b/graphics.go index 7ed1e90364ad84b74e794eed3d1b1f6accd4048d..b39a011f3d9dbaa5ed3a734f11ea39849c816be3 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