X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pixbuf%2Fpixbuf-document.c;h=e2bfaca39da7c7e9d8f1572836eb4a30a2c12979;hb=7d9e5143adb83d52169fae99f3c07b953e948d8e;hp=5147293a29945d934bdc3ad50f5ee3ece9dca6ee;hpb=2a08b88d7fc1397335cc85812b8f2bd4d53125d9;p=evince.git diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index 5147293a..e2bfaca3 100644 --- a/pixbuf/pixbuf-document.c +++ b/pixbuf/pixbuf-document.c @@ -108,7 +108,7 @@ pixbuf_document_render_pixbuf (EvDocument *document, gdk_pixbuf_get_height (pixbuf_document->pixbuf) * rc->scale, GDK_INTERP_BILINEAR); - rotated_pixbuf = gdk_pixbuf_rotate_simple (scaled_pixbuf, rc->rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (scaled_pixbuf, 360 - rc->rotation); g_object_unref (scaled_pixbuf); return rotated_pixbuf; @@ -180,7 +180,7 @@ pixbuf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document, pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf, size, height, GDK_INTERP_BILINEAR); - rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rotation); g_object_unref (pixbuf); return rotated_pixbuf;