splash/Splash.cc |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit b6159fea4a13ecfd1c38b3a666a797c5147dd952
Author: William Bader <[email protected]>
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 <[email protected]>
 // Copyright (C) 2010-2012 Thomas Freitag <[email protected]>
 // Copyright (C) 2010 Christian Feuersänger <[email protected]>
-// Copyright (C) 2011 William Bader <[email protected]>
+// Copyright (C) 2011, 2012 William Bader <[email protected]>
 //
 // 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;
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to