X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-document-misc.c;h=89ff5fa8a76ff1ff14381a2608478cdb9d86db45;hb=57df208de1acaf93c60bd8401ec72a7d39f6ad9a;hp=fd6f4493904059138f8fa14e28f86b7f8ab1adbf;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c index fd6f4493..89ff5fa8 100644 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c @@ -12,7 +12,6 @@ GdkPixbuf * ev_document_misc_get_thumbnail_frame (int width, int height, - int rotation, GdkPixbuf *source_pixbuf) { GdkPixbuf *retval; @@ -21,9 +20,6 @@ ev_document_misc_get_thumbnail_frame (int width, int i; int width_r, height_r; - rotation = rotation % 360; - - if (source_pixbuf) g_return_val_if_fail (GDK_IS_PIXBUF (source_pixbuf), NULL); @@ -31,15 +27,8 @@ ev_document_misc_get_thumbnail_frame (int width, width_r = gdk_pixbuf_get_width (source_pixbuf); height_r = gdk_pixbuf_get_height (source_pixbuf); } else { - if (rotation == 0 || rotation == 180) { - width_r = width; - height_r = height; - } else if (rotation == 90 || rotation == 270) { - width_r = height; - height_r = width; - } else { - g_assert_not_reached (); - } + width_r = width; + height_r = height; } /* make sure no one is passing us garbage */