fix for silly bug in Mustek backend

David Mosberger-Tang (davidm@azstarnet.com)
Mon, 14 Jul 1997 20:01:41 -0700

I just noticed that in lineart mode, the gamma table is not ignored by
the scanner (even though it's supposed to be using the brightness &
contrast controls only). This can be confusing if you select "Use
custom gamma table" in the color or grayscale mode and then try to
scan a lineart image. To avoid this problem, install the appended
patch.

--david

--- backend/mustek.c~ Tue Jul 1 08:37:48 1997
+++ backend/mustek.c Mon Jul 14 19:53:02 1997
@@ -2095,7 +2095,7 @@

status = gamma_correction (s, MUSTEK_CODE_BLUE);
}
- else
+ else if (s->params.depth > 1)
status = gamma_correction (s, MUSTEK_CODE_GRAY);

if (status != SANE_STATUS_GOOD)

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com