From 7627c56d30c3b70497f164823e834b72a4269fcf Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sun, 26 Dec 2010 00:54:07 +0100 Subject: [PATCH] Update width/height on rotation --- ft/djvu/djvu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ft/djvu/djvu.c b/ft/djvu/djvu.c index 9f45e5e..b1b5df6 100644 --- a/ft/djvu/djvu.c +++ b/ft/djvu/djvu.c @@ -205,14 +205,24 @@ djvu_page_render(zathura_page_t* page) ddjvu_page_rotation_t rotation = DDJVU_ROTATE_0; + unsigned int dim_temp = 0; + switch(Zathura.document->rotate) { case 90: + tmp = page_width; + page_width = page_height; + page_height = page_tmp; + rotation = DDJVU_ROTATE_90; break; case 180: rotation = DDJVU_ROTATE_180; break; case 270: + tmp = page_width; + page_width = page_height; + page_height = page_tmp; + rotation = DDJVU_ROTATE_270; break; }