Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sprites.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-04 14:22:37 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-04 14:22:37 (GMT)
commit8f0b3ede6fdec724a9c6ec878880321b076f1efc (patch)
treed30a7964e43d75f1e11b1d029439bc6f6d3f3a12 /sprites.py
parentc1d9975f0adcbaf15430a9eb976b5bff042aad31 (diff)
fixed text entry/label display problem
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()