From fc7a784543c31d4207d775521e2eb75fe95a22ee Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 07 Mar 2005 17:34:59 +0000 Subject: Remove 4 pixels of useless border from the thumbnail. 2005-03-07 Marco Pesenti Gritti * pdf/pdf-document.cc: Remove 4 pixels of useless border from the thumbnail. --- (limited to 'pdf') diff --git a/pdf/pdf-document.cc b/pdf/pdf-document.cc index 2ed1f17..8d74c86 100644 --- a/pdf/pdf-document.cc +++ b/pdf/pdf-document.cc @@ -1262,13 +1262,14 @@ pdf_document_thumbnails_get_page_pixbuf (PdfDocument *pdf_document, if (border) { pixbuf = ev_document_misc_get_thumbnail_frame (width, height, NULL); + bitmap_to_pixbuf (output->getBitmap(), pixbuf, 1, 1); } else { pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, - width + 4, height + 4); + width, height); gdk_pixbuf_fill (pixbuf, 0xffffffff); + bitmap_to_pixbuf (output->getBitmap(), pixbuf, 0, 0); } - bitmap_to_pixbuf (output->getBitmap(), pixbuf, 1, 1); delete output; return pixbuf; -- cgit v0.9.1