From 1e6a44161fd4b6a4ab6897c39c26c01611cf2ec0 Mon Sep 17 00:00:00 2001 From: jcsjcs Date: Sun, 3 Aug 2008 02:55:51 +0000 Subject: 2008-08-03 Jorg Schuler * 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 --- src/ithumb-writer.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src') 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; -- cgit