From e93b3a265bbc02546d230204402e3f41e83d6ab5 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Thu, 30 Jun 2005 05:44:28 +0000 Subject: Massive changes. We now support text selection of pdfs, and not just Thu Jun 30 01:43:00 2005 Jonathan Blandford * shell/*: * backend/ev-render-context.[ch]: * backend/ev-selection.[ch]: Massive changes. We now support text selection of pdfs, and not just rectangular selection. This is pretty broken still, but I want to get something into CVS. --- (limited to 'pixbuf') 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); -- cgit v0.9.1