mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-05 19:34:57 +01:00
scale cairo surface
This commit is contained in:
parent
72ebb3bc13
commit
f78b79ec17
1 changed files with 4 additions and 0 deletions
4
render.c
4
render.c
|
@ -200,6 +200,10 @@ render(zathura_t* zathura, zathura_page_t* page)
|
|||
break;
|
||||
}
|
||||
|
||||
if (fabs(zathura->document->scale - 1.0f) > FLT_EPSILON) {
|
||||
cairo_scale(cairo, zathura->document->scale, zathura->document->scale);
|
||||
}
|
||||
|
||||
if (page->document->rotate != 0) {
|
||||
cairo_rotate(cairo, page->document->rotate * G_PI / 180.0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue