1
diff -Nur -x '*.orig' -x '*~' poppler-0.14.3//poppler/CairoOutputDev.cc poppler-0.14.3.new//poppler/CairoOutputDev.cc
2
--- poppler-0.14.3//poppler/CairoOutputDev.cc 2010-07-13 00:19:57.000000000 +0200
3
+++ poppler-0.14.3.new//poppler/CairoOutputDev.cc 2010-12-07 17:07:58.920388022 +0100
6
cairo_surface_t *image;
7
cairo_pattern_t *pattern;
12
cairo_matrix_t matrix;
14
imgStr = new ImageStream(str, width, 1, 1);
17
- image = cairo_image_surface_create (CAIRO_FORMAT_A8, width, height);
18
+ image = cairo_image_surface_create (CAIRO_FORMAT_A1, width, height);
19
if (cairo_surface_status (image))
22
@@ -1588,12 +1588,23 @@
23
for (y = 0; y < height; y++) {
24
pix = imgStr->getLine();
25
dest = buffer + y * row_stride;
28
for (x = 0; x < width; x++) {
30
- if (pix[x] ^ invert_bit)
36
+ if (!(pix[x] ^ invert_bit)) {
37
+#ifdef WORDS_BIGENDIAN
38
+ dest[i] |= (1 << (7 - bit));
40
+ dest[i] |= (1 << bit);