minor change
This commit is contained in:
parent
7d1f685d4b
commit
21013620a9
|
@ -35,8 +35,8 @@ func (s *Sprite) SetPicture(pic Picture) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
center = s.bounds.Center()
|
center = s.bounds.Center()
|
||||||
horizontal = V(s.bounds.W()/2, 0)
|
horizontal = X(s.bounds.W() / 2)
|
||||||
vertical = V(0, s.bounds.H()/2)
|
vertical = Y(s.bounds.H() / 2)
|
||||||
)
|
)
|
||||||
|
|
||||||
(*s.tri)[0].Position = -horizontal - vertical
|
(*s.tri)[0].Position = -horizontal - vertical
|
||||||
|
|
Loading…
Reference in New Issue