]> www.fi.muni.cz Git - evince.git/commitdiff
Fix selections with poppler-splash.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 14 Mar 2008 11:22:01 +0000 (11:22 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 14 Mar 2008 11:22:01 +0000 (11:22 +0000)
2008-03-14  Carlos Garcia Campos  <carlosgc@gnome.org>

* libdocument/ev-document-misc.c:
(ev_document_misc_surface_from_pixbuf):

Fix selections with poppler-splash.

svn path=/trunk/; revision=2966

ChangeLog
libdocument/ev-document-misc.c

index dca4f69446d20ac785dc90ca5ee3ea0b65119aae..436e9c86b924c10a8d02117239d27e5e7ef9bc06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-03-14  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * libdocument/ev-document-misc.c:
+       (ev_document_misc_surface_from_pixbuf):
+
+       Fix selections with poppler-splash.
+       
 2008-03-14  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * configure.ac:
index 7bc793cbf02b772759acbe85100d4a08cdeeded8..133a6c6acce732e756f1ceaae248a41e17bd716b 100644 (file)
@@ -152,8 +152,9 @@ ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf)
 {
        cairo_surface_t *surface;
        cairo_t         *cr;
-       
-       surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24,
+
+       surface = cairo_image_surface_create (gdk_pixbuf_get_has_alpha (pixbuf) ?
+                                             CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24,
                                              gdk_pixbuf_get_width (pixbuf),
                                              gdk_pixbuf_get_height (pixbuf));
        cr = cairo_create (surface);