[poppler] Branch 'poppler-0.22' - poppler/CairoOutputDev.cc

Adrian Johnson ajohnson at kemper.freedesktop.org
Mon Mar 18 02:31:45 PDT 2013


 poppler/CairoOutputDev.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 72c8312d77704211f55c8de35b47bd811c792878
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Mar 17 19:39:14 2013 +1030

    cairo: Don't change image interpolation when printing
    
    Bug 62418

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 441ca45..79d891d 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -1765,6 +1765,10 @@ CairoOutputDev::getFilterForSurface(cairo_surface_t *image,
   if (orig_width == 0 || orig_height == 0)
 	  return CAIRO_FILTER_NEAREST;
 
+  /* When printing, don't change the interpolation. */
+  if (printing)
+    return CAIRO_FILTER_NEAREST;
+
   int scaled_width, scaled_height;
   getScaledSize (orig_width, orig_height, &scaled_width, &scaled_height);
 


More information about the poppler mailing list