Index: djvu/djvu-document.c
===================================================================
RCS file: /cvs/gnome/evince/djvu/djvu-document.c,v
retrieving revision 1.8
diff -u -p -r1.8 djvu-document.c
--- djvu/djvu-document.c	31 Jul 2005 10:07:23 -0000	1.8
+++ djvu/djvu-document.c	23 Aug 2005 21:50:14 -0000
@@ -166,7 +166,7 @@ djvu_document_render_pixbuf (EvDocument 
                 	  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 (
 				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: dvi/dvi-document.c
===================================================================
RCS file: /cvs/gnome/evince/dvi/dvi-document.c,v
retrieving revision 1.8
diff -u -p -r1.8 dvi-document.c
--- dvi/dvi-document.c	31 Jul 2005 10:07:23 -0000	1.8
+++ dvi/dvi-document.c	23 Aug 2005 21:50:14 -0000
@@ -191,7 +191,7 @@ dvi_document_render_pixbuf (EvDocument  
 
 	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 (E
 	}
 	
 	
-	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: pixbuf/pixbuf-document.c
===================================================================
RCS file: /cvs/gnome/evince/pixbuf/pixbuf-document.c,v
retrieving revision 1.20
diff -u -p -r1.20 pixbuf-document.c
--- pixbuf/pixbuf-document.c	31 Jul 2005 10:07:24 -0000	1.20
+++ pixbuf/pixbuf-document.c	23 Aug 2005 21:50:14 -0000
@@ -108,7 +108,7 @@ pixbuf_document_render_pixbuf (EvDocumen
 					         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
 	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: tiff/tiff-document.c
===================================================================
RCS file: /cvs/gnome/evince/tiff/tiff-document.c,v
retrieving revision 1.10
diff -u -p -r1.10 tiff-document.c
--- tiff/tiff-document.c	29 Jul 2005 16:02:28 -0000	1.10
+++ tiff/tiff-document.c	23 Aug 2005 21:50:16 -0000
@@ -257,7 +257,7 @@ tiff_document_render_pixbuf (EvDocument 
 					   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;
