From 5e43774b418b9ed521660463f912fa88809bd551 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Wed, 24 Aug 2005 15:45:12 +0000 Subject: Update rotation direction of backends to fit with pdf and ps --- diff --git a/ChangeLog b/ChangeLog index 5c64a32..d264d9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2005-08-24 Nickolay V. Shmyrev + + * djvu/djvu-document.c: (djvu_document_render_pixbuf), + (djvu_document_thumbnails_get_thumbnail): + * dvi/dvi-document.c: (dvi_document_render_pixbuf), + (dvi_document_thumbnails_get_thumbnail): + * pixbuf/pixbuf-document.c: (pixbuf_document_render_pixbuf), + (pixbuf_document_thumbnails_get_thumbnail): + * tiff/tiff-document.c: (tiff_document_render_pixbuf): + + Update rotation direction of backends to fit with pdf and ps. + 2005-08-24 Marco Pesenti Gritti * backend/ev-async-renderer.c: (ev_async_renderer_render_pixbuf): diff --git a/djvu/djvu-document.c b/djvu/djvu-document.c index 1945249..8257b3e 100644 --- a/djvu/djvu-document.c +++ b/djvu/djvu-document.c @@ -166,7 +166,7 @@ djvu_document_render_pixbuf (EvDocument *document, gdk_pixbuf_get_rowstride (pixbuf), (gchar *)gdk_pixbuf_get_pixels (pixbuf)); - rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rc->rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rc->rotation); g_object_unref (pixbuf); return rotated_pixbuf; @@ -280,7 +280,7 @@ djvu_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document, gdk_pixbuf_get_rowstride (pixbuf), (gchar *)pixels); - rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rotation); g_object_unref (pixbuf); return rotated_pixbuf; diff --git a/dvi/dvi-document.c b/dvi/dvi-document.c index 05bc5b6..1bb465c 100644 --- a/dvi/dvi-document.c +++ b/dvi/dvi-document.c @@ -191,7 +191,7 @@ dvi_document_render_pixbuf (EvDocument *document, g_mutex_unlock (dvi_context_mutex); - rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rc->rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rc->rotation); g_object_unref (pixbuf); return rotated_pixbuf; @@ -321,7 +321,7 @@ dvi_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document, } - rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rotation); + rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rotation); g_object_unref (pixbuf); return rotated_pixbuf; diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index 5147293..e2bfaca 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; diff --git a/tiff/tiff-document.c b/tiff/tiff-document.c index d30ab18..ce4f9ab 100644 --- a/tiff/tiff-document.c +++ b/tiff/tiff-document.c @@ -257,7 +257,7 @@ tiff_document_render_pixbuf (EvDocument *document, GDK_INTERP_BILINEAR); g_object_unref (pixbuf); - 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; -- cgit v0.9.1