From 5e43774b418b9ed521660463f912fa88809bd551 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Wed, 24 Aug 2005 15:45:12 +0000 Subject: [PATCH] Update rotation direction of backends to fit with pdf and ps --- ChangeLog | 12 ++++++++++++ djvu/djvu-document.c | 4 ++-- dvi/dvi-document.c | 4 ++-- pixbuf/pixbuf-document.c | 4 ++-- tiff/tiff-document.c | 2 +- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c64a32b..d264d9e5 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 19452499..8257b3e3 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 05bc5b61..1bb465c1 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 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; diff --git a/tiff/tiff-document.c b/tiff/tiff-document.c index d30ab18e..ce4f9ab6 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; -- 2.43.5