summaryrefslogtreecommitdiff
path: root/coders/wbmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/wbmp.c')
-rw-r--r--coders/wbmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coders/wbmp.c b/coders/wbmp.c
index 23ff0b20c..4925b04c5 100644
--- a/coders/wbmp.c
+++ b/coders/wbmp.c
@@ -201,7 +201,7 @@ static Image *ReadWBMPImage(const ImageInfo *image_info,
if (byte == EOF)
ThrowReaderException(CorruptImageError,"CorruptImage");
}
- SetIndexPixelComponent(indexes+x,(byte & (0x01 << (7-bit))) ? 1 : 0);
+ SetPixelIndex(indexes+x,(byte & (0x01 << (7-bit))) ? 1 : 0);
bit++;
if (bit == 8)
bit=0;