Skip to content

Commit

Permalink
Merge pull request #129 from makermelissa/main
Browse files Browse the repository at this point in the history
Fix issue where float was used when int was expected
  • Loading branch information
makermelissa authored Feb 27, 2024
2 parents 67549f4 + 014df31 commit 09889f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions displayio/_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ def _update_transform(self, parent_transform):
y = self._group_y
if parent_transform.transpose_xy:
x, y = y, x
self._absolute_transform.x = parent_transform.x + parent_transform.dx * x
self._absolute_transform.y = parent_transform.y + parent_transform.dy * y
self._absolute_transform.x = int(
parent_transform.x + parent_transform.dx * x
)
self._absolute_transform.y = int(
parent_transform.y + parent_transform.dy * y
)
self._absolute_transform.dx = parent_transform.dx * self._scale
self._absolute_transform.dy = parent_transform.dy * self._scale
self._absolute_transform.transpose_xy = parent_transform.transpose_xy
Expand Down

0 comments on commit 09889f5

Please sign in to comment.