Skip to content

Commit

Permalink
Try fix test 'test_scale_up' failing in actor
Browse files Browse the repository at this point in the history
  • Loading branch information
yansnow78 committed Jan 28, 2022
1 parent 5ad9fea commit ab0aacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgzero/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def _transform(self):
ra = radians(self._angle)
sin_a = sin(ra)
cos_a = cos(ra)
self.height = (abs(w * sin_a) + abs(h * cos_a))*self._scale
self.width = (abs(w * cos_a) + abs(h * sin_a))*self._scale
self.height = int((abs(w * sin_a) + abs(h * cos_a))*self._scale)
self.width = int((abs(w * cos_a) + abs(h * sin_a))*self._scale)
ax, ay = self._untransformed_anchor
p = self.pos
self._anchor = transform_anchor(ax, ay, w, h, self._angle, self._scale)
Expand Down

0 comments on commit ab0aacb

Please sign in to comment.