minor change

This commit is contained in:
faiface 2017-03-15 00:35:14 +01:00
parent 7d1f685d4b
commit 21013620a9
1 changed files with 2 additions and 2 deletions

View File

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