+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):
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;
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;
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;
}
- rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, rotation);
+ rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rotation);
g_object_unref (pixbuf);
return rotated_pixbuf;
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;
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;
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;