X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pixbuf%2Fpixbuf-document.c;h=d4a8c9afb1f41984dab2ff03b5be1ce0a15649a7;hb=8f535d303b8985db357abc54cb4d3fe1ff7e84bd;hp=97f5271883ad516759a0bd1fa45d810f0e185c04;hpb=bf2e7e1e34b8940db72a55af9f3dabcf20ebb095;p=evince.git diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index 97f52718..d4a8c9af 100644 --- a/pixbuf/pixbuf-document.c +++ b/pixbuf/pixbuf-document.c @@ -139,14 +139,15 @@ pixbuf_document_get_page_size (EvDocument *document, } static GdkPixbuf* -pixbuf_document_render_pixbuf (EvDocument *document, int page, double scale) +pixbuf_document_render_pixbuf (EvDocument *document, + EvRenderContext *rc) { PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document); GdkPixbuf *scaled_pixbuf, *rotated_pixbuf; scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf, - gdk_pixbuf_get_width (pixbuf_document->pixbuf) * scale, - gdk_pixbuf_get_height (pixbuf_document->pixbuf) * scale, + gdk_pixbuf_get_width (pixbuf_document->pixbuf) * rc->scale, + gdk_pixbuf_get_height (pixbuf_document->pixbuf) * rc->scale, GDK_INTERP_BILINEAR); rotated_pixbuf = rotate_pixbuf (document, scaled_pixbuf);