]> www.fi.muni.cz Git - evince.git/commitdiff
Don't generate thumbnails with alpha. See bug #324077. Thanks to Jeroen
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 25 Dec 2005 16:49:47 +0000 (16:49 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 25 Dec 2005 16:49:47 +0000 (16:49 +0000)
* djvu/djvu-document.c: (djvu_document_thumbnails_get_thumbnail):
* dvi/pixbuf-device.c: (dvi_pixbuf_create_image),
(mdvi_pixbuf_device_render):
* pdf/ev-poppler.cc:

Don't generate thumbnails with alpha. See bug #324077.
Thanks to Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>.

ChangeLog
djvu/djvu-document.c
dvi/pixbuf-device.c
pdf/ev-poppler.cc

index afe17d7d8ab3a60ddbae903f2ac8846a16cda32f..91448fb093da5a1d1868f8b5e99e46f695c1ef5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-12-25  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * djvu/djvu-document.c: (djvu_document_thumbnails_get_thumbnail):
+       * dvi/pixbuf-device.c: (dvi_pixbuf_create_image),
+       (mdvi_pixbuf_device_render):
+       * pdf/ev-poppler.cc:
+
+       Don't generate thumbnails with alpha. See bug #324077.
+       Thanks to Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>.
+
 2005-12-25  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * shell/ev-window.c: (setup_chrome_from_metadata):
index 3814787545a3a5b5ed283365dcb204e22147c709..8819e73494fcca1b423d247301926998ce069d73 100644 (file)
@@ -293,7 +293,7 @@ djvu_document_thumbnails_get_thumbnail (EvDocumentThumbnails   *document,
        
        djvu_document_thumbnails_get_dimensions (document, page, width, &thumb_width, &thumb_height);
        
-       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
                                 thumb_width, thumb_height);
        gdk_pixbuf_fill (pixbuf, 0xffffffff);
        pixels = gdk_pixbuf_get_pixels (pixbuf);
index 6175e471980f5b1d498a2604c67ac628d1cc74be..1a81c0119a253e47b1ec75854e75a610fc1975cc 100644 (file)
@@ -128,7 +128,7 @@ static int dvi_pixbuf_interpolate_colors(void *device_data,
 static void *dvi_pixbuf_create_image(void *device_data, Uint w, Uint h, Uint bpp)
 {
 
-    return gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, w, h);
+    return gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, w, h);
     
     return NULL;
 }
@@ -207,7 +207,7 @@ mdvi_pixbuf_device_render (DviContext * dvi)
   page_width = dvi->dvi_page_w * dvi->params.conv + 2 * c_device->xmargin;
   page_height = dvi->dvi_page_h * dvi->params.vconv + 2 * c_device->ymargin;
     
-  c_device->pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, page_width, page_height);
+  c_device->pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, page_width, page_height);
   gdk_pixbuf_fill (c_device->pixbuf, 0xffffffff);
 
   mdvi_dopage (dvi, dvi->currpage);
index 417e1aedd9e73d357809feba833d682fc5ba06bf..4fb1d9a2e50c957bad2db783a8fde10a85d42c59 100644 (file)
@@ -910,7 +910,7 @@ make_thumbnail_for_size (PdfDocument   *pdf_document,
                height = temp;
        }
 
-       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+       pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
                                 width, height);
        gdk_pixbuf_fill (pixbuf, 0xffffffff);