summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-03 02:55:51 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-03 02:55:51 +0000
commit1e6a44161fd4b6a4ab6897c39c26c01611cf2ec0 (patch)
treead0117f55e418db9474c2c1b6d9ad0ef0acffcc9
parente071b3753839af39ad0be6c5ec01d47f8b9c0d86 (diff)
downloadlibgpod-1e6a44161fd4b6a4ab6897c39c26c01611cf2ec0.tar.gz
libgpod-1e6a44161fd4b6a4ab6897c39c26c01611cf2ec0.tar.xz
libgpod-1e6a44161fd4b6a4ab6897c39c26c01611cf2ec0.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--ChangeLog6
-rw-r--r--src/ithumb-writer.c18
2 files changed, 9 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e506c0..e48c72d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;