This is a patch against pre1.01-4. Can you tell us, whether this patch
works for you or not ? Maybe David can include the patch into the
1.01 release if it works.
---------------------------cut here -----------------------------------
--- microtek2.c.orig Mon Apr 5 16:54:21 1999
+++ microtek2.c Mon Apr 5 17:16:32 1999
@@ -1843,11 +1843,15 @@
pad = (int) ceil( (double) (ms->ppl * bits_pp_in) / 8.0 ) % 2;
bpp = bits_pp_out / 8;
- /* The ScanMaker 636 has 3 * ppl + 6 bytes per line and the X6EL */
- /* 3 * ppl + 2 bytes per line (depth=8, even number of pixels), which */
- /* can not be explained by the documentation; bpl_ppl_diff corrects this */
- if (mi->model_code == 0x91
- && (md->revision == 1.10 || md->revision == 1.20))
+ /* Some models have 3 * ppl + 6 bytes per line if the number of pixels */
+ /* per line is even and 3 * ppl + 3 bytes per line if the number of */
+ /* pixels per line is odd. According to the documentation it should be */
+ /* bpl = 3*ppl (even number of pixels) or bpl=3*ppl+1 (odd number of */ /* pixels. Even worse: On different models it different at which */ /* position in a scanline the image data starts. bpl_ppl_diff tries */ /* to fix this */
+
+ if ( (mi->model_code == 0x91
+ && (md->revision == 1.10 || md->revision == 1.20))
+ || (mi->model_code == 0x98 && md->revision == 1.30 ) )
+
bpl_ppl_diff = ms->bpl - ( 3 * ms->ppl * bpp );
else
bpl_ppl_diff = ms->bpl - ( 3 * ms->ppl * bpp ) - pad;
---------cut there ------------------------------------------------------
> PS I think there was some discussion of this a month or two ago,
> but I forget the answer: does the light ever turn off in this
> scanner? it seems to stay on a long time even when idle ...
Yes, this is normal.
Bernd
-- Bernd Schroeder Email: mailto:bernd@aquila.muc.de PGP public key available: mailto:pgp@aquila.muc.de | Subject: send key
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com