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-01-26 04:41:46 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-26 04:41:46 (GMT)
commit18a50f72447c28c82c6283d51ab52e9b153836bc (patch)
tree03619071243f6acb5d83dfb1e4ddfbffffe64034 /sprites.py
parentd55ff0e2c64ea5c90a8573ca97b969e09a143d2b (diff)
fixed most of the project-loading problems
Diffstat (limited to 'sprites.py')
-rw-r--r--sprites.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sprites.py b/sprites.py
index 13996bb..cdf26ad 100644
--- a/sprites.py
+++ b/sprites.py
@@ -237,14 +237,14 @@ class Sprite:
if self._horiz_align[i] == "center":
x = int(self._x+self._margins[0]+(my_width-w)/2)
elif self._horiz_align[i] == 'left':
- x = self._x+self._margins[0]
+ x = int(self._x+self._margins[0])
else: # right
x = int(self._x+self._width-w-self._margins[2])
h = pl.get_size()[1]/pango.SCALE
if self._vert_align[i] == "middle":
y = int(self._y+self._margins[1]+(my_height-h)/2)
elif self._vert_align[i] == "top":
- y = self._y+self._margins[1]
+ y = int(self._y+self._margins[1])
else: # bottom
y = int(self._y+self._height-h-self._margins[3])
self._sprites.gc.set_foreground(self._color)