Skip to content

Commit ab0aacb

Browse files
committed
Try fix test 'test_scale_up' failing in actor
1 parent 5ad9fea commit ab0aacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgzero/actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def _transform(self):
265265
ra = radians(self._angle)
266266
sin_a = sin(ra)
267267
cos_a = cos(ra)
268-
self.height = (abs(w * sin_a) + abs(h * cos_a))*self._scale
269-
self.width = (abs(w * cos_a) + abs(h * sin_a))*self._scale
268+
self.height = int((abs(w * sin_a) + abs(h * cos_a))*self._scale)
269+
self.width = int((abs(w * cos_a) + abs(h * sin_a))*self._scale)
270270
ax, ay = self._untransformed_anchor
271271
p = self.pos
272272
self._anchor = transform_anchor(ax, ay, w, h, self._angle, self._scale)

0 commit comments

Comments
 (0)