From: Carlos Garcia Campos Date: Fri, 14 Mar 2008 11:22:01 +0000 (+0000) Subject: Fix selections with poppler-splash. X-Git-Tag: EVINCE_2_22_1~26 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=85ecf6bfd1d55c0684baa0efa969bc0d23947bef;p=evince.git Fix selections with poppler-splash. 2008-03-14 Carlos Garcia Campos * libdocument/ev-document-misc.c: (ev_document_misc_surface_from_pixbuf): Fix selections with poppler-splash. svn path=/trunk/; revision=2966 --- diff --git a/ChangeLog b/ChangeLog index dca4f694..436e9c86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-14 Carlos Garcia Campos + + * libdocument/ev-document-misc.c: + (ev_document_misc_surface_from_pixbuf): + + Fix selections with poppler-splash. + 2008-03-14 Carlos Garcia Campos * configure.ac: diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c index 7bc793cb..133a6c6a 100644 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c @@ -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);