From: glennrp Date: Sun, 6 Jan 2013 01:21:46 +0000 (+0000) Subject: Fix LBR01 macros in png.c X-Git-Tag: 7.0.1-0~4491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=360c1549eac5e4759deeaf2a80b027498bea291e;p=imagemagick Fix LBR01 macros in png.c --- diff --git a/coders/png.c b/coders/png.c index a4925d599..16a4144f8 100644 --- a/coders/png.c +++ b/coders/png.c @@ -167,20 +167,24 @@ } #define LBR01PixelRed(pixel) \ - (ScaleQuantumToChar(GetPixelRed(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange); + (SetPixelRed(image, \ + ScaleQuantumToChar(GetPixelRed(image,(pixel))) < 0x10 ? \ + 0 : QuantumRange)); #define LBR01PixelGreen(pixel) \ - (ScaleQuantumToChar(GetPixelGreen(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange); + (SetPixelGreen(image, \ + ScaleQuantumToChar(GetPixelGreen(image,(pixel))) < 0x10 ? \ + 0 : QuantumRange)); #define LBR01PixelBlue(pixel) \ - (ScaleQuantumToChar(GetPixelBlue(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange); + (SetPixelBlue(image, \ + ScaleQuantumToChar(GetPixelBlue(image,(pixel))) < 0x10 ? \ + 0 : QuantumRange)); #define LBR01PixelAlpha(pixel) \ - (ScaleQuantumToChar(GetPixelAlpha(image,(pixel))) < 0x10 ? \ - 0 : QuantumRange); + (SetPixelAlpha(image, \ + ScaleQuantumToChar(GetPixelAlpha(image,(pixel))) < 0x10 ? \ + 0 : QuantumRange)); #define LBR01PixelRGB(pixel) \ { \