]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 21 May 2011 14:09:16 +0000 (14:09 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 21 May 2011 14:09:16 +0000 (14:09 +0000)
magick/pixel.h

index 34e38136ee0c22d24513986dc11acd5cefb13258..e8cd80929f035dc77498af151abb43aa2d0a337d 100644 (file)
@@ -60,12 +60,12 @@ extern "C" {
 #define SetOpacityPixelComponent(pixel,value) \
   ((pixel)->opacity=(Quantum) (value))
 #define SetRedPixelComponent(pixel,value) ((pixel)->red=(Quantum) (value))
-#define SetRGBAPixelComponent(q,p) \
+#define SetRGBAPixelComponent(destination,source) \
 { \
-  SetRedPixelComponent(q,GetRedPixelComponent(p)); \
-  SetGreenPixelComponent(q,GetGreenPixelComponent(p)); \
-  SetBluePixelComponent(q,GetBluePixelComponent(p)); \
-  SetOpacityPixelComponent(q,GetOpacityPixelComponent(p)); \
+  SetRedPixelComponent(destination,GetRedPixelComponent(source)); \
+  SetGreenPixelComponent(destination,GetGreenPixelComponent(source)); \
+  SetBluePixelComponent(destination,GetBluePixelComponent(source)); \
+  SetOpacityPixelComponent(destination,GetOpacityPixelComponent(source)); \
 }
 #define SetYellowPixelComponent(pixel,value) ((pixel)->blue=(Quantum) (value))
 #define SetYPixelComponent(pixel,value) ((pixel)->red=(Quantum) (value))