diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2011-02-05 15:27:25 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2011-02-05 15:27:25 +0000 |
commit | f30c53c4e40f4f78f703d3683833ffc37d29978e (patch) | |
tree | 8889fe594e86c1c1eaca2c25dc51e9e8b077409a | |
parent | 78bd1dc656cb1b8721107fe07aa3dee4c0c3bd70 (diff) | |
download | ghostpdl-f30c53c4e40f4f78f703d3683833ffc37d29978e.tar.gz |
Merge r12117 from the "halftone" branch into trunk, the original commit
comment says:
Fix bug in bit devices rgb mapping procedure; in the ncomp == 1 case it
was only setting the first component. This was causing indeterminisms in
calling code, which has been giving vastly different timings in Norberts
tests.
This has apparently been here since revision 3318.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12118 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/base/gdevbit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevbit.c b/gs/base/gdevbit.c index 151bf527c..71e9bb554 100644 --- a/gs/base/gdevbit.c +++ b/gs/base/gdevbit.c @@ -445,7 +445,7 @@ bit_map_color_rgb(gx_device * dev, gx_color_index color, gx_color_value cv[4]) switch (ncomp) { case 1: /* gray */ - cv[0] = + cv[0] = cv[1] = cv[2] = (depth == 1 ? (color ? 0 : gx_max_color_value) : cvalue(color)); break; |