clarify we're not setting a pal index in the mask
no logic changed intended, SetPixelIndex expands to this, just want to clarify that this is an alpha value, not an index into a palette Change-Id: Ie9bb188b116adf3eab4e2bb1d6da8badbaead88b
This commit is contained in:
parent
2c91fc1944
commit
e5b23d924d
@ -1628,7 +1628,7 @@ void PNGReaderImpl::ImplSetAlphaPixel( sal_uInt32 nY, sal_uInt32 nX,
|
|||||||
nX >>= mnPreviewShift;
|
nX >>= mnPreviewShift;
|
||||||
|
|
||||||
mxAcc->SetPixelIndex( nY, nX, nPalIndex );
|
mxAcc->SetPixelIndex( nY, nX, nPalIndex );
|
||||||
mpMaskAcc->SetPixelIndex( nY, nX, ~nAlpha );
|
mpMaskAcc->SetPixel(nY, nX, BitmapColor(~nAlpha));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PNGReaderImpl::ImplSetAlphaPixel( sal_uInt32 nY, sal_uInt32 nX,
|
void PNGReaderImpl::ImplSetAlphaPixel( sal_uInt32 nY, sal_uInt32 nX,
|
||||||
@ -1642,7 +1642,7 @@ void PNGReaderImpl::ImplSetAlphaPixel( sal_uInt32 nY, sal_uInt32 nX,
|
|||||||
mxAcc->SetPixel( nY, nX, rBitmapColor );
|
mxAcc->SetPixel( nY, nX, rBitmapColor );
|
||||||
if (!mpMaskAcc)
|
if (!mpMaskAcc)
|
||||||
return;
|
return;
|
||||||
mpMaskAcc->SetPixelIndex( nY, nX, ~nAlpha );
|
mpMaskAcc->SetPixel(nY, nX, BitmapColor(~nAlpha));
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt32 PNGReaderImpl::ImplReadsal_uInt32()
|
sal_uInt32 PNGReaderImpl::ImplReadsal_uInt32()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user