scale cairo surface

This commit is contained in:
Sebastian Ramacher 2011-09-29 18:49:43 +02:00
parent 72ebb3bc13
commit f78b79ec17

View file

@ -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);
}