Mustek 1200SP Fix (I hope :)

Stefano Garavaglia (alter.ego@iol.it)
Fri, 13 Feb 1998 22:00:48 +0100 (MET)

This fix is for a problem introduced in 0.68.
0.67 worked fine for me, and 0.68 broke something, producing some
weird color strips in the scan. I don't know if this has anything to
do with the "infamous color strip bug", I think not.
So, here is the diff, it works well for me. It's made against 0.70.
It looks like a typo in rewriting fix_line_distance_mfs: "bpl" was
left out.

--- mustek.c.orig Fri Feb 13 20:20:33 1998
+++ mustek.c Fri Feb 13 21:35:10 1998
@@ -1349,7 +1349,7 @@
for (y = 0; y < 2*dy; ++y)
{
if (num_lines - 2*dy + y >= 0)
- src = raw + (num_lines - 2*dy + y);
+ src = raw + (num_lines - 2*dy + y)*bpl;
else
src = s->ld.buf[RED] + (y + num_lines)*bpc;
memcpy (s->ld.buf[RED] + y*bpc, src, bpc);

Ciao,
Stefano
n.b. I have a 1200SP rev 1.00, which works well now :)
--------------------------------------------------------------
| Stefano Garavaglia | alter.ego@iol.it |
| Milano - Italy | http://users.iol.it/alter.ego |
--------------------------------------------------------------

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com