From 18a50f72447c28c82c6283d51ab52e9b153836bc Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 26 Jan 2010 04:41:46 +0000 Subject: fixed most of the project-loading problems --- (limited to 'sprites.py') 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) -- cgit v0.9.1