From 9dbc17e4f309fc74abc19655b08aab01dbd110ef Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Tue, 28 Dec 2010 21:44:59 +0000 Subject: [PATCH] * CID 10346: hid unused code; I cannot remember why the code is not used; maybe it was not implemented completly or BePDF could not render it correctly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39996 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/print/drivers/pdf/source/PDFWriter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp b/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp index 7b0ba7d347..530090aca0 100644 --- a/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp +++ b/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp @@ -1158,7 +1158,12 @@ uint8 * PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat, int32 flags, void *data) { +#if 1 + // TODO: CreateSoftMask??? + return NULL; +#else static bool errorReported = false; + uint8 *in; uint8 *inRow; int32 x, y; @@ -1169,9 +1174,6 @@ PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat, bool alpha; int32 bpp; -// TODO: CreateSoftMask??? - return NULL; - bpp = BytesPerPixel(pixelFormat); if (bpp < 0) return NULL; @@ -1235,6 +1237,7 @@ PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat, mask = NULL; } return mask; +#endif }