From: glennrp Date: Sun, 6 Jan 2013 01:32:16 +0000 (+0000) Subject: Fix LBR01 macros (with extra parameter used in IM7) X-Git-Tag: 7.0.1-0~4490 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7375f9f4105dd03f69c115a3d9c1a2087d1742b;p=imagemagick Fix LBR01 macros (with extra parameter used in IM7) --- diff --git a/coders/png.c b/coders/png.c index 16a4144f8..51fdfc07a 100644 --- a/coders/png.c +++ b/coders/png.c @@ -169,22 +169,22 @@ #define LBR01PixelRed(pixel) \ (SetPixelRed(image, \ ScaleQuantumToChar(GetPixelRed(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange)); + 0 : QuantumRange,(pixel))); #define LBR01PixelGreen(pixel) \ (SetPixelGreen(image, \ ScaleQuantumToChar(GetPixelGreen(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange)); + 0 : QuantumRange,(pixel))); #define LBR01PixelBlue(pixel) \ (SetPixelBlue(image, \ ScaleQuantumToChar(GetPixelBlue(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange)); + 0 : QuantumRange,(pixel))); #define LBR01PixelAlpha(pixel) \ (SetPixelAlpha(image, \ ScaleQuantumToChar(GetPixelAlpha(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange)); + 0 : QuantumRange,(pixel))); #define LBR01PixelRGB(pixel) \ { \