From: Marco Pesenti Gritti Date: Mon, 7 Mar 2005 17:34:59 +0000 (+0000) Subject: Remove 4 pixels of useless border from the thumbnail. X-Git-Tag: EVINCE_0_1_7~3 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=fc7a784543c31d4207d775521e2eb75fe95a22ee;p=evince.git 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. --- diff --git a/ChangeLog b/ChangeLog index 1052cf2b..96eea7e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-03-07 Marco Pesenti Gritti + + * pdf/pdf-document.cc: + + Remove 4 pixels of useless border from the + thumbnail. + 2005-03-07 Marco Pesenti Gritti * backend/ev-document-thumbnails.c: diff --git a/pdf/pdf-document.cc b/pdf/pdf-document.cc index 2ed1f171..8d74c864 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;