[evince] Unify direction of rotation
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Unify direction of rotation
- Date: Mon, 23 Jun 2014 12:22:40 +0000 (UTC)
commit 073ae1c4e7450f4715e6fcefaf954c4d53a6109d
Author: Marek Kasik <mkasik redhat com>
Date: Mon Jun 23 14:16:04 2014 +0200
Unify direction of rotation
Convert rotation from clockwise direction to counter-clockwise direction
for djvu backend.
https://bugzilla.gnome.org/show_bug.cgi?id=731786
backend/djvu/djvu-document.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/backend/djvu/djvu-document.c b/backend/djvu/djvu-document.c
index 9c30a22..06ce813 100644
--- a/backend/djvu/djvu-document.c
+++ b/backend/djvu/djvu-document.c
@@ -354,9 +354,13 @@ djvu_document_render (EvDocument *document,
ev_render_context_compute_transformed_size (rc, page_width, page_height,
&transformed_width, &transformed_height);
+ /*
+ * Evince rotates documents in clockwise direction
+ * and djvulibre rotates documents in counter-clockwise direction.
+ */
switch (rc->rotation) {
case 90:
- rotation += DDJVU_ROTATE_90;
+ rotation += DDJVU_ROTATE_270;
break;
case 180:
@@ -364,7 +368,7 @@ djvu_document_render (EvDocument *document,
break;
case 270:
- rotation += DDJVU_ROTATE_270;
+ rotation += DDJVU_ROTATE_90;
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]