[poppler] splash/Splash.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu May 10 11:05:06 PDT 2012
splash/Splash.cc | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit b6159fea4a13ecfd1c38b3a666a797c5147dd952
Author: William Bader <williambader at hotmail.com>
Date: Thu May 10 20:02:19 2012 +0200
splash uses cmykTransferC for M, Y and K in two places
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 047bbe8..e5f7667 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -15,7 +15,7 @@
// Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
// Copyright (C) 2010-2012 Thomas Freitag <Thomas.Freitag at alfa.de>
// Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
-// Copyright (C) 2011 William Bader <williambader at hotmail.com>
+// Copyright (C) 2011, 2012 William Bader <williambader at hotmail.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -400,17 +400,17 @@ void Splash::pipeRun(SplashPipe *pipe) {
if (state->overprintMask & 2) {
pipe->destColorPtr[1] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[1] + state->cmykTransferM[pipe->cSrc[1]], 255) :
- state->cmykTransferC[pipe->cSrc[1]];
+ state->cmykTransferM[pipe->cSrc[1]];
}
if (state->overprintMask & 4) {
pipe->destColorPtr[2] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[2] + state->cmykTransferY[pipe->cSrc[2]], 255) :
- state->cmykTransferC[pipe->cSrc[2]];
+ state->cmykTransferY[pipe->cSrc[2]];
}
if (state->overprintMask & 8) {
pipe->destColorPtr[3] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[3] + state->cmykTransferK[pipe->cSrc[3]], 255) :
- state->cmykTransferC[pipe->cSrc[3]];
+ state->cmykTransferK[pipe->cSrc[3]];
}
pipe->destColorPtr += 4;
break;
@@ -848,17 +848,17 @@ void Splash::pipeRunSimpleCMYK8(SplashPipe *pipe) {
if (state->overprintMask & 2) {
pipe->destColorPtr[1] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[1] + state->cmykTransferM[pipe->cSrc[1]], 255) :
- state->cmykTransferC[pipe->cSrc[1]];
+ state->cmykTransferM[pipe->cSrc[1]];
}
if (state->overprintMask & 4) {
pipe->destColorPtr[2] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[2] + state->cmykTransferY[pipe->cSrc[2]], 255) :
- state->cmykTransferC[pipe->cSrc[2]];
+ state->cmykTransferY[pipe->cSrc[2]];
}
if (state->overprintMask & 8) {
pipe->destColorPtr[3] = (state->overprintAdditive) ?
std::min<int>(pipe->destColorPtr[3] + state->cmykTransferK[pipe->cSrc[3]], 255) :
- state->cmykTransferC[pipe->cSrc[3]];
+ state->cmykTransferK[pipe->cSrc[3]];
}
pipe->destColorPtr += 4;
*pipe->destAlphaPtr++ = 255;
More information about the poppler
mailing list