From c7375f9f4105dd03f69c115a3d9c1a2087d1742b Mon Sep 17 00:00:00 2001 From: glennrp Date: Sun, 6 Jan 2013 01:32:16 +0000 Subject: [PATCH] Fix LBR01 macros (with extra parameter used in IM7) --- coders/png.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) \ { \ -- 2.40.0