From 9b7faf5f7e481b944cc3f6463f85dc3025b52f27 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 13 Jan 2009 22:23:53 +0000 Subject: [PATCH] don't use alpha channel in bitmap --- lib/pdf/FullBitmapOutputDev.cc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/pdf/FullBitmapOutputDev.cc b/lib/pdf/FullBitmapOutputDev.cc index d35956d..f19fd25 100644 --- a/lib/pdf/FullBitmapOutputDev.cc +++ b/lib/pdf/FullBitmapOutputDev.cc @@ -167,13 +167,11 @@ void FullBitmapOutputDev::flushBitmap() gfxcolor_t*out = &img->data[y*rangex]; Guchar*ain = &alpha[(y+ymin)*width+xmin]; for(x=0;xfillbitmap(dev, line, img, &m, 0); gfxline_free(line); - memset(rgbdev->getBitmap()->getAlphaPtr(), 0, rgbdev->getBitmap()->getWidth()*rgbdev->getBitmap()->getHeight()); - memset(rgbdev->getBitmap()->getDataPtr(), 0, rgbdev->getBitmap()->getRowSize()*rgbdev->getBitmap()->getHeight()); - free(img->data);img->data=0;free(img);img=0; } -- 1.7.10.4