X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fpdf%2Fev-poppler.cc;h=0a073ca0b04ae48a5501281bb202e11bf30c077b;hb=206bc8045e1d217e09f0e640d14791f2669a92ac;hp=6ba82a6dbbb61e40c2e471f5474f386b31d3094a;hpb=839ffed6b31077b8eec37858ee50cb438033f90d;p=evince.git diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 6ba82a6d..0a073ca0 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -487,17 +487,11 @@ pdf_page_render (PopplerPage *page, #ifdef HAVE_POPPLER_PAGE_RENDER cairo_t *cr; - cairo_pattern_t *pattern; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); cr = cairo_create (surface); - cairo_save (cr); - cairo_set_source_rgba (cr, 1., 1., 1., 0); - cairo_paint (cr); - cairo_restore (cr); - switch (rc->rotation) { case 90: cairo_translate (cr, width, 0); @@ -515,12 +509,10 @@ pdf_page_render (PopplerPage *page, cairo_rotate (cr, rc->rotation * G_PI / 180.0); poppler_page_render (page, cr); - pattern = cairo_pattern_create_rgb (1., 1., 1.); cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER); - cairo_set_source (cr, pattern); + cairo_set_source_rgb (cr, 1., 1., 1.); cairo_paint (cr); - cairo_pattern_destroy (pattern); cairo_destroy (cr); #else /* HAVE_POPPLER_PAGE_RENDER */ GdkPixbuf *pixbuf;