diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-05-31 20:10:19 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-05-31 20:10:19 (GMT) |
commit | c5cb6d2e411d7114b811178f9b6c804421d2b12c (patch) | |
tree | c56ac3c3af52f5475aeb112aaee42190399b2ac9 | |
parent | bdb42142c82518a9383aadaaa13c1f2d60bc1204 (diff) |
Fixed bug: Scalling correctly the first frame at first time.
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | animation.py | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -5,4 +5,3 @@ Fixes: - Enable drag and drop between frames. Bugs: - Doesn't select another frame when the last frame is removed. - - Bad scaled image in the first frame only in first time. 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) |