]> www.fi.muni.cz Git - evince.git/commitdiff
Remove 4 pixels of useless border from the thumbnail.
authorMarco Pesenti Gritti <marco@gnome.org>
Mon, 7 Mar 2005 17:34:59 +0000 (17:34 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 7 Mar 2005 17:34:59 +0000 (17:34 +0000)
2005-03-07  Marco Pesenti Gritti  <marco@gnome.org>

        * pdf/pdf-document.cc:

        Remove 4 pixels of useless border from the
        thumbnail.

ChangeLog
pdf/pdf-document.cc

index 1052cf2b64380765a7603ed064815da464a932d6..96eea7e4c7bcef0e23a7fcefc3ff852593e9e1ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-03-07  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * pdf/pdf-document.cc:
+
+       Remove 4 pixels of useless border from the
+       thumbnail.
+
 2005-03-07  Marco Pesenti Gritti  <marco@gnome.org>
 
        * backend/ev-document-thumbnails.c:
index 2ed1f1719142bc1dd99f31de6d7048510230b7ce..8d74c864785eab72aab7bfae318d3f15b4b64cd8 100644 (file)
@@ -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;