Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sprites.py
diff options
context:
space:
mode:
Diffstat (limited to 'sprites.py')
-rw-r--r--sprites.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/sprites.py b/sprites.py
index ef5ed2b..14394e2 100644
--- a/sprites.py
+++ b/sprites.py
@@ -169,10 +169,14 @@ class Sprite:
_h = self.images[i].get_height()
else:
_w, _h = self.images[i].get_size()
- if _w > self._width:
+ if len(self.images) == 1:
self._width = _w
- if _h > self._height:
self._height = _h
+ else: # TODO: fix this calculation
+ if _w > self._width:
+ self._width = _w
+ if _h > self._height:
+ self._height = _h
def move(self, pos):
self.inval()