mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:26:00 +01:00
Update width/height on rotation
This commit is contained in:
parent
c0cfa407ca
commit
7627c56d30
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue