Commit 18a60f39 authored by Albert Astals Cid's avatar Albert Astals Cid

SplashOutputDev::drawSoftMaskedImage: Rename n to fix shadow warning

parent c12e4e05
......@@ -3944,9 +3944,9 @@ void SplashOutputDev::drawSoftMaskedImage(GfxState *state, Object * /* ref */,
imgMaskData.y = 0;
imgMaskData.maskStr = nullptr;
imgMaskData.maskColorMap = nullptr;
const unsigned n = 1 << maskColorMap->getBits();
imgMaskData.lookup = (SplashColorPtr)gmalloc(n);
for (unsigned i = 0; i < n; ++i) {
const unsigned imgMaskDataLookupSize = 1 << maskColorMap->getBits();
imgMaskData.lookup = (SplashColorPtr)gmalloc(imgMaskDataLookupSize);
for (unsigned i = 0; i < imgMaskDataLookupSize; ++i) {
pix = (unsigned char)i;
maskColorMap->getGray(&pix, &gray);
imgMaskData.lookup[i] = colToByte(gray);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment