Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pixbuf/pixbuf-document.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixbuf/pixbuf-document.c')
-rw-r--r--pixbuf/pixbuf-document.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c
index 97f5271..d4a8c9a 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);