sane-project-website/old-archive/1998-02/0087.html

64 wiersze
2.8 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Fri Feb 13 12:57:27 1998 PST" -->
<!-- sent="Fri, 13 Feb 1998 22:00:48 +0100 (MET)" -->
<!-- name="Stefano Garavaglia" -->
<!-- email="alter.ego@iol.it" -->
<!-- subject="Mustek 1200SP Fix (I hope :)" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Mustek 1200SP Fix (I hope :)</title>
<h1>Mustek 1200SP Fix (I hope :)</h1>
<b>Stefano Garavaglia</b> (<a href="mailto:alter.ego@iol.it"><i>alter.ego@iol.it</i></a>)<br>
<i>Fri, 13 Feb 1998 22:00:48 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#87">[ date ]</a><a href="index.html#87">[ thread ]</a><a href="subject.html#87">[ subject ]</a><a href="author.html#87">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0088.html">David Mosberger-Tang: "Re: Mustek 1200SP Fix (I hope :)"</a>
<li> <b>Previous message:</b> <a href="0086.html">Ondrej Popp: "Re: sane and gimp"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
This fix is for a problem introduced in 0.68.<br>
0.67 worked fine for me, and 0.68 broke something, producing some<br>
weird color strips in the scan. I don't know if this has anything to<br>
do with the "infamous color strip bug", I think not.<br>
So, here is the diff, it works well for me. It's made against 0.70.<br>
It looks like a typo in rewriting fix_line_distance_mfs: "bpl" was<br>
left out.<br>
<p>
--- mustek.c.orig Fri Feb 13 20:20:33 1998<br>
+++ mustek.c Fri Feb 13 21:35:10 1998<br>
@@ -1349,7 +1349,7 @@<br>
for (y = 0; y &lt; 2*dy; ++y)<br>
{<br>
if (num_lines - 2*dy + y &gt;= 0)<br>
- src = raw + (num_lines - 2*dy + y);<br>
+ src = raw + (num_lines - 2*dy + y)*bpl;<br>
else<br>
src = s-&gt;ld.buf[RED] + (y + num_lines)*bpc;<br>
memcpy (s-&gt;ld.buf[RED] + y*bpc, src, bpc);<br>
<p>
Ciao,<br>
Stefano<br>
n.b. I have a 1200SP rev 1.00, which works well now :)<br>
--------------------------------------------------------------<br>
<i>| Stefano Garavaglia | <a href="mailto:alter.ego@iol.it">alter.ego@iol.it</a> | </i><br>
<i>| Milano - Italy | <a href="http://users.iol.it/alter.ego">http://users.iol.it/alter.ego</a> |</i><br>
--------------------------------------------------------------<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0088.html">David Mosberger-Tang: "Re: Mustek 1200SP Fix (I hope :)"</a>
<li> <b>Previous message:</b> <a href="0086.html">Ondrej Popp: "Re: sane and gimp"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>