From 21013620a912ba2ed83bd1dc2b38e8b2a783cbfa Mon Sep 17 00:00:00 2001 From: faiface Date: Wed, 15 Mar 2017 00:35:14 +0100 Subject: [PATCH] minor change --- graphics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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