Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pixbuf
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-06-30 05:44:28 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-06-30 05:44:28 (GMT)
commite93b3a265bbc02546d230204402e3f41e83d6ab5 (patch)
tree9a56861f73e0b9a523a2d8cba2d817318a639605 /pixbuf
parenta50ca0528a09e8e001c4600371048774e4029057 (diff)
Massive changes. We now support text selection of pdfs, and not just
Thu Jun 30 01:43:00 2005 Jonathan Blandford <jrb@redhat.com> * 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.
Diffstat (limited to 'pixbuf')
-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);