]> www.fi.muni.cz Git - evince.git/commitdiff
Update rotation direction of backends to fit with pdf and ps
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Wed, 24 Aug 2005 15:45:12 +0000 (15:45 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Wed, 24 Aug 2005 15:45:12 +0000 (15:45 +0000)
ChangeLog
djvu/djvu-document.c
dvi/dvi-document.c
pixbuf/pixbuf-document.c
tiff/tiff-document.c

index 5c64a32b2055add73559c5a319c07b2af084f346..d264d9e51a5e6e6dfcd40df5c7ccaad190232af9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-08-24  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * 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  <mpg@redhat.com>
 
        * backend/ev-async-renderer.c: (ev_async_renderer_render_pixbuf):
index 19452499df704b0f4ad47d659034c75612ea84df..8257b3e328154aaaa693216c5f1d3ae97d5cf0e9 100644 (file)
@@ -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;
index 05bc5b617b27b2e405a44499c9aa399e32261840..1bb465c1c58b44d055221dace889109cb818d73a 100644 (file)
@@ -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;
index 5147293a29945d934bdc3ad50f5ee3ece9dca6ee..e2bfaca39da7c7e9d8f1572836eb4a30a2c12979 100644 (file)
@@ -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;
index d30ab18ea711dfcd908b73995f198f4053a32fd9..ce4f9ab64bdfa7e26792735fbe218b93f3ee3ccb 100644 (file)
@@ -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;