poppler/SplashOutputDev.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 53b9cec6c1334020f90b885cff6fc30293437e5f Author: Thomas Freitag <[email protected]> Date: Sun Apr 21 23:28:40 2013 +0200 Splash: Always consider a softmask transfer function Fixes bug 63587 in splash diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 0426b18..6e62720 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -3975,7 +3975,12 @@ void SplashOutputDev::setSoftMask(GfxState *state, double *bbox, for (y = 0; y < yMax; ++y) { for (x = 0; x < xMax; ++x) { if (alpha) { - p[x] = tBitmap->getAlpha(x, y); + if (transferFunc) { + lum = tBitmap->getAlpha(x, y) / 255.0; + transferFunc->transform(&lum, &lum2); + p[x] = (int)(lum2 * 255.0 + 0.5); + } else + p[x] = tBitmap->getAlpha(x, y); } else { tBitmap->getPixel(x, y, color); // convert to luminosity _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
