From: kramm Date: Wed, 26 Mar 2008 13:00:43 +0000 (+0000) Subject: xpdf-3.02 compatiblity switch X-Git-Tag: buttons-working~358 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5437824ac399626ab2219baa59b94fb0b2772b29 xpdf-3.02 compatiblity switch --- diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index ccf1da9..8148a81 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -1269,8 +1269,15 @@ void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox, GBool forSoftMask) { msg(" beginTransparencyGroup"); +#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 + GfxState*state1 = state->copy(); + GfxState*state2 = state->copy(); + state1->setPath(state->getPath()->copy()); + state2->setPath(state->getPath()->copy()); +#else GfxState*state1 = state->copy(gTrue); GfxState*state2 = state->copy(gTrue); +#endif boolpolydev->beginTransparencyGroup(state1, bbox, blendingColorSpace, isolated, knockout, forSoftMask); rgbdev->beginTransparencyGroup(state2, bbox, blendingColorSpace, isolated, knockout, forSoftMask); clip1dev->beginTransparencyGroup(state, bbox, blendingColorSpace, isolated, knockout, forSoftMask); @@ -1280,8 +1287,15 @@ void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox, void BitmapOutputDev::endTransparencyGroup(GfxState *state) { msg(" endTransparencyGroup"); +#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 + GfxState*state1 = state->copy(); + GfxState*state2 = state->copy(); + state1->setPath(state->getPath()->copy()); + state2->setPath(state->getPath()->copy()); +#else GfxState*state1 = state->copy(gTrue); GfxState*state2 = state->copy(gTrue); +#endif boolpolydev->endTransparencyGroup(state1); checkNewBitmap(); rgbdev->endTransparencyGroup(state2);