X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FBitmapOutputDev.cc;h=25c4c81715619b656d978994f51061f0be2dc47e;hp=6eaea6bcb461ff4c9b68c82464c85a37a25f7113;hb=a1587574bba2fe7cffe40aa1bad0fe84aed23825;hpb=b43d07ef45012438211d2ed4b588e77b73a1994c diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index 6eaea6b..25c4c81 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -226,10 +226,10 @@ void BitmapOutputDev::flushBitmap() } } else { for(x=0;x>(x&7)))) { + if(!(ain2[(x+xmin)/8]&(0x80>>((x+xmin)&7)))) { /* cut away pixels that we don't remember drawing (i.e., that are - not in the monochrome bitmap. Prevents some "hairlines" showing - up to the left and right of bitmaps */ + not in the monochrome bitmap). Prevents some "hairlines" showing + up to the left and right of bitmaps. */ out[x].r = 0;out[x].g = 0;out[x].b = 0;out[x].a = 0; } else { /* according to endPage()/compositeBackground() in xpdf/SplashOutputDev.cc, we