Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dvi
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-12-25 16:49:47 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-12-25 16:49:47 (GMT)
commit751ce0a89e747f595f4bb42a426f36332f7739ef (patch)
treee11c8dd1bf8b23ae7856b80a12b1221770f68462 /dvi
parent2cf45835358157f276a93e4e1ecd2f2e50910252 (diff)
Don't generate thumbnails with alpha. See bug #324077. Thanks to Jeroen
* 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>.
Diffstat (limited to 'dvi')
-rw-r--r--dvi/pixbuf-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvi/pixbuf-device.c b/dvi/pixbuf-device.c
index 6175e47..1a81c01 100644
--- a/dvi/pixbuf-device.c
+++ b/dvi/pixbuf-device.c
@@ -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);