commit | 520bce88fc4ffc5f3759eb59a598f5eac0a092b4 | [log] [tgz] |
---|---|---|
author | cristy <[email protected]> | Wed Jan 19 19:41:27 2011 +0000 |
committer | cristy <[email protected]> | Wed Jan 19 19:41:27 2011 +0000 |
tree | b66c54a702eb28bcd0077ebbf805a77bf47d3db3 | |
parent | 6ff1e93b18131fe4c378bb9820213a067b0bc894 [diff] [blame] |
diff --git a/coders/aai.c b/coders/aai.c index abdb288..c56312c 100644 --- a/coders/aai.c +++ b/coders/aai.c
@@ -175,8 +175,8 @@ q->blue=ScaleCharToQuantum(*p++); q->green=ScaleCharToQuantum(*p++); q->red=ScaleCharToQuantum(*p++); - if (*p == 0) - *p=1; + if (*p == 254) + *p=255; q->opacity=(Quantum) (QuantumRange-ScaleCharToQuantum(*p)); if (q->opacity != OpaqueOpacity) image->matte=MagickTrue;