diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2008-08-03 02:55:51 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2008-08-03 02:55:51 +0000 |
commit | 85d7c256d8cf37417f5a8d409f9be563077b0bc2 (patch) | |
tree | ad0117f55e418db9474c2c1b6d9ad0ef0acffcc9 | |
parent | 57c10ac7860f08302e7ef7f3d051f65c814fbd23 (diff) | |
download | libgpod-tmz-85d7c256d8cf37417f5a8d409f9be563077b0bc2.tar.gz libgpod-tmz-85d7c256d8cf37417f5a8d409f9be563077b0bc2.tar.xz libgpod-tmz-85d7c256d8cf37417f5a8d409f9be563077b0bc2.zip |
2008-08-03 Jorg Schuler <jcsjcs at users.sourceforge.net>
* src/ithumb-writer (ithumb_writer_handle_pixbuf_transform):
handle rotation correctly: don't interchange width and height
for the thumbnail on the iPod.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2083 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ithumb-writer.c | 18 |
2 files changed, 9 insertions, 15 deletions
@@ -1,3 +1,9 @@ +2008-08-03 Jorg Schuler <jcsjcs at users.sourceforge.net> + + * src/ithumb-writer (ithumb_writer_handle_pixbuf_transform): + handle rotation correctly: don't interchange width and height + for the thumbnail on the iPod. + 2008-08-02 Todd Zullinger <tmzullinger at users.sourceforge.net> * src/itdb_track.c: Fix typo in itdb_track_get_thumbnail() doc diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index 6d15b6c..f9c0ffb 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -822,23 +822,11 @@ ithumb_writer_handle_pixbuf_transform (iThumbWriter *writer, GdkPixbuf *rotated_pixbuf; GdkPixbuf *scaled_pixbuf; - guint width; - guint height; - rotated_pixbuf = ithumb_writer_handle_rotation (pixbuf, &rotation); - if ((rotation == 0) || (rotation == 180)) - { - width = writer->img_info->width; - height = writer->img_info->height; - } - else - { - width = writer->img_info->height; - height = writer->img_info->width; - } - - scaled_pixbuf = ithumb_writer_scale_and_crop (rotated_pixbuf, width, height, + scaled_pixbuf = ithumb_writer_scale_and_crop (rotated_pixbuf, + writer->img_info->width, + writer->img_info->height, writer->img_info->crop); g_object_unref (rotated_pixbuf); rotated_pixbuf = NULL; |