summaryrefslogtreecommitdiff
path: root/coders/matte.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/matte.c')
-rw-r--r--coders/matte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coders/matte.c b/coders/matte.c
index a415208c4..cadddcb58 100644
--- a/coders/matte.c
+++ b/coders/matte.c
@@ -194,10 +194,10 @@ static MagickBooleanType WriteMATTEImage(const ImageInfo *image_info,
break;
for (x=0; x < (ssize_t) image->columns; x++)
{
- SetRedPixelComponent(q,GetOpacityPixelComponent(p));
- SetGreenPixelComponent(q,GetOpacityPixelComponent(p));
- SetBluePixelComponent(q,GetOpacityPixelComponent(p));
- SetOpacityPixelComponent(q,OpaqueOpacity);
+ SetPixelRed(q,GetPixelOpacity(p));
+ SetPixelGreen(q,GetPixelOpacity(p));
+ SetPixelBlue(q,GetPixelOpacity(p));
+ SetPixelOpacity(q,OpaqueOpacity);
p++;
q++;
}