diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-10-12 23:07:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-10-12 23:07:32 +0000 |
commit | b06d17a000761a14900f9ec22740b7415c8a304c (patch) | |
tree | b866442f6ae3620d569d90f331ce5a211089f253 /editor | |
parent | 5d64f5134f6677a5f6766cd4a6245f0a9056e152 (diff) | |
download | netpbm-mirror-b06d17a000761a14900f9ec22740b7415c8a304c.tar.gz netpbm-mirror-b06d17a000761a14900f9ec22740b7415c8a304c.tar.xz netpbm-mirror-b06d17a000761a14900f9ec22740b7415c8a304c.zip |
Release 10.35.53
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@754 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r-- | editor/pamditherbw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/pamditherbw.c b/editor/pamditherbw.c index e4c0d4c6..f9e159f1 100644 --- a/editor/pamditherbw.c +++ b/editor/pamditherbw.c @@ -425,7 +425,8 @@ fsConvertRow(struct converter * const converterP, do { samplen sum; - sum = pm_ungamma709(grayrow[col][0]) + thiserr[col + 1]; + sum = MIN(2*stateP->threshval, pm_ungamma709(grayrow[col][0])) + + thiserr[col + 1]; if (sum >= stateP->threshval) { /* We've accumulated enough light to justify a white output pixel. |