X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FBitmapOutputDev.cc;h=1a735e31a5d2fd385bd91ce11b858cacf2b3475c;hp=6eaea6bcb461ff4c9b68c82464c85a37a25f7113;hb=944d0b42a196bd412c12c6c06fd0e4f301d4a1c7;hpb=b43d07ef45012438211d2ed4b588e77b73a1994c diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index 6eaea6b..1a735e3 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -75,7 +75,7 @@ BitmapOutputDev::BitmapOutputDev(InfoOutputDev*info, PDFDoc*doc) this->clip1dev->startDoc(this->xref); this->gfxoutput = (gfxdevice_t*)malloc(sizeof(gfxdevice_t)); - gfxdevice_record_init(this->gfxoutput); + gfxdevice_record_init(this->gfxoutput, 0); this->gfxdev->setDevice(this->gfxoutput); @@ -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