Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-03-07 17:34:59 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-03-07 17:34:59 (GMT)
commitfc7a784543c31d4207d775521e2eb75fe95a22ee (patch)
treef6ad05007d97888df9de377587d4d0bbda9ab439 /pdf
parentb006971d2c876b5ae62e2ed917496d370e90333c (diff)
Remove 4 pixels of useless border from the thumbnail.
2005-03-07 Marco Pesenti Gritti <marco@gnome.org> * pdf/pdf-document.cc: Remove 4 pixels of useless border from the thumbnail.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf-document.cc5
1 files changed, 3 insertions, 2 deletions
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;