# Re: Mustek Paragon 1200 SP problem

David Mosberger-Tang (David.Mosberger@acm.org)
Mon, 23 Feb 1998 21:04:42 -0800

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: David Mosberger-Tang: "Re: Re[1]: someone working on hp-backend ?"
- Previous message: David Mosberger-Tang: "Re: Mustek Paragon 1200 A3 PRO"

>>>>> On Mon, 23 Feb 1998 00:37:46 +0100 (MET), Thomas Wenzke <thomas@twenzke.nacamar.de> said:

Thomas> Hello I have a Mustek Paragon 1200 SP since last week and
Thomas> try it on my Linux-i386. It's an old Pentium-133 with
Thomas> EIDE-Disk, SCSI-CDROM and SCSI-Tandberg-Tape. There is a
Thomas> NCR-810 Symbios-Controller and a NE-2000 in the Box. This
Thomas> works well all the days.

Thomas> Scanning with the default-resolution works fine - i think.
Thomas> But altering the resolution to more than 35 dpi results in
Thomas> horizontal stripes and color-shift away from red in
Thomas> direction green and blue and grayish colors.

There is a bug in sane-0.68 till 0.70 that may cause this. If you can
wait, 0.71 should be out soon (hopefully tonight) which will fix this.
If you can't wait, the fix is below (courtesy of Stefano Garavaglia
<alter.ego@iol.it>).

--david

--- sane-0.70/backend/mustek.c Tue Jan 27 00:15:35 1998
+++ sane-0.71/backend/mustek.c Fri Feb 13 20:56:05 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);
@@ -1357,7 +1357,7 @@
for (y = 0; y < 1*dy; ++y)
{
if (num_lines - 1*dy + y >= 0)
- src = raw + (num_lines - 1*dy + y) * bpl + bpc;
+ src = raw + (num_lines - 1*dy + y)*bpl + bpc;
else
src = s->ld.buf[GRN] + (y + num_lines)*bpc;
memcpy (s->ld.buf[GRN] + y*bpc, src, bpc);

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

- Next message: David Mosberger-Tang: "Re: Re[1]: someone working on hp-backend ?"
- Previous message: David Mosberger-Tang: "Re: Mustek Paragon 1200 A3 PRO"