* 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
This commit is contained in:
@@ -1158,7 +1158,12 @@ uint8 *
|
|||||||
PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat,
|
PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat,
|
||||||
int32 flags, void *data)
|
int32 flags, void *data)
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
// TODO: CreateSoftMask???
|
||||||
|
return NULL;
|
||||||
|
#else
|
||||||
static bool errorReported = false;
|
static bool errorReported = false;
|
||||||
|
|
||||||
uint8 *in;
|
uint8 *in;
|
||||||
uint8 *inRow;
|
uint8 *inRow;
|
||||||
int32 x, y;
|
int32 x, y;
|
||||||
@@ -1169,9 +1174,6 @@ PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat,
|
|||||||
bool alpha;
|
bool alpha;
|
||||||
int32 bpp;
|
int32 bpp;
|
||||||
|
|
||||||
// TODO: CreateSoftMask???
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
bpp = BytesPerPixel(pixelFormat);
|
bpp = BytesPerPixel(pixelFormat);
|
||||||
if (bpp < 0)
|
if (bpp < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -1235,6 +1237,7 @@ PDFWriter::CreateSoftMask(BRect src, int32 bytesPerRow, int32 pixelFormat,
|
|||||||
mask = NULL;
|
mask = NULL;
|
||||||
}
|
}
|
||||||
return mask;
|
return mask;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user