Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/animation.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-05-31 20:10:19 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-05-31 20:10:19 (GMT)
commitc5cb6d2e411d7114b811178f9b6c804421d2b12c (patch)
treec56ac3c3af52f5475aeb112aaee42190399b2ac9 /animation.py
parentbdb42142c82518a9383aadaaa13c1f2d60bc1204 (diff)
Fixed bug: Scalling correctly the first frame at first time.
Diffstat (limited to 'animation.py')
-rw-r--r--animation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/animation.py b/animation.py
index 527ec97..27c9c3d 100644
--- a/animation.py
+++ b/animation.py
@@ -101,8 +101,9 @@ class Animation(gtk.Image):
self._size[0] * height / width,
gtk.gdk.INTERP_TILES)
else:
- scaled_pixbuf = pixbuf.scale_simple(self._size[1],
- self._size[1] * width / height,
+ scaled_pixbuf = pixbuf.scale_simple(self._size[1] *\
+ width / height,
+ self._size[1],
gtk.gdk.INTERP_TILES)
self.set_from_pixbuf(scaled_pixbuf)