summaryrefslogtreecommitdiff
path: root/poppler/SplashOutputDev.cc
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-02-14 17:40:23 +0100
committerAlbert Astals Cid <aacid@kde.org>2018-02-14 17:44:32 +0100
commit73130ae1125c86ebd0ee504d0681d9911ff2cfbd (patch)
treea4527428498147c35b1ccc0795f0ec5bc8a36e9c /poppler/SplashOutputDev.cc
parent37efb98d77c14c27a22806ec676c13f0a8b99490 (diff)
SplashGouraudPattern: Remove mode member variable
We don't need it anymore, was introduced in the initial overprint implementation and was forgotten to be removed when merging xpdf 3.03
Diffstat (limited to 'poppler/SplashOutputDev.cc')
-rw-r--r--poppler/SplashOutputDev.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 50b78245..efc0aaec 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -197,15 +197,10 @@ static inline void convertGfxShortColor(SplashColorPtr dest,
// SplashGouraudPattern
//------------------------------------------------------------------------
SplashGouraudPattern::SplashGouraudPattern(GBool bDirectColorTranslationA,
- GfxState *stateA, GfxGouraudTriangleShading *shadingA, SplashColorMode modeA) {
- SplashColor defaultColor;
- GfxColor srcColor;
+ GfxState *stateA, GfxGouraudTriangleShading *shadingA) {
state = stateA;
shading = shadingA;
- mode = modeA;
bDirectColorTranslation = bDirectColorTranslationA;
- shadingA->getColorSpace()->getDefaultColor(&srcColor);
- convertGfxColor(defaultColor, mode, shadingA->getColorSpace(), &srcColor);
gfxMode = shadingA->getColorSpace()->getMode();
}
@@ -4754,7 +4749,7 @@ GBool SplashOutputDev::gouraudTriangleShadedFill(GfxState *state, GfxGouraudTria
}
// restore vector antialias because we support it here
if (shading->isParameterized()) {
- SplashGouraudColor *splashShading = new SplashGouraudPattern(bDirectColorTranslation, state, shading, colorMode);
+ SplashGouraudColor *splashShading = new SplashGouraudPattern(bDirectColorTranslation, state, shading);
GBool vaa = getVectorAntialias();
GBool retVal = gFalse;
setVectorAntialias(gTrue);