[haiku-commits] r39996 - haiku/trunk/src/add-ons/print/drivers/pdf/source

Author: laplace
Date: 2010-12-28 22:44:59 +0100 (Tue, 28 Dec 2010)
New Revision: 39996
Changeset: http://dev.haiku-os.org/changeset/39996

Modified:
   haiku/trunk/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp
Log:
* 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.


Modified: haiku/trunk/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp
===================================================================
--- haiku/trunk/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp      
2010-12-28 21:24:58 UTC (rev 39995)
+++ haiku/trunk/src/add-ons/print/drivers/pdf/source/PDFWriter.cpp      
2010-12-28 21:44:59 UTC (rev 39996)
@@ -1158,7 +1158,12 @@
 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 @@
        bool    alpha;
        int32   bpp;
 
-// TODO: CreateSoftMask???
-       return NULL;
-
        bpp = BytesPerPixel(pixelFormat);
        if (bpp < 0)
                return NULL;
@@ -1235,6 +1237,7 @@
                mask = NULL;
        }
        return mask;
+#endif
 }
 
 


Other related posts:

  • » [haiku-commits] r39996 - haiku/trunk/src/add-ons/print/drivers/pdf/source - michael . w . pfeiffer