summaryrefslogtreecommitdiff
path: root/backend/hp4200.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:20 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:20 +0200
commit3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (patch)
treed69692a274dd1c7d0672e6bb7155a0fc106f9d49 /backend/hp4200.c
parentc8bd2513ecba169cff44c09c8058c36987357b18 (diff)
parent1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (diff)
Update upstream source from tag 'upstream/1.0.28'
Update to upstream version '1.0.28' with Debian dir ec5bb298266630fc3801ff6dc0c258f6df7ba979
Diffstat (limited to 'backend/hp4200.c')
-rw-r--r--backend/hp4200.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/backend/hp4200.c b/backend/hp4200.c
index 589157d..d4d4f64 100644
--- a/backend/hp4200.c
+++ b/backend/hp4200.c
@@ -5,24 +5,24 @@
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Developers:
- Adrian Perez Jorge (APJ) -
+ Adrian Perez Jorge (APJ) -
Creator of the original HP4200C backend code.
adrianpj@easynews.com
-
- Andrew John Lewis (AJL) -
+
+ Andrew John Lewis (AJL) -
lewi0235@tc.umn.edu
Arnar Mar Hrafnkelsson (AMH) -
@@ -43,7 +43,7 @@ TODO:
image size and the scanner-to-host bandwidth.
- improve image quality.
- fix problem concerning mangled images
-
+
*/
#define BUILD 2
@@ -1498,7 +1498,7 @@ do_fine_calibration (HP4200_Scanner * s, struct coarse_t *coarse)
int i;
for (i = 0; i < 12; i++)
{
- memset (registro[i], 0, 5460 * 3);
+ memset (registro[i], 0, 5460 * 3 * sizeof(registro[0]));
}
}
@@ -1884,7 +1884,7 @@ prepare_for_a_scan (HP4200_Scanner * s)
calculated horizontal dpi code */
hdpi_div = hdpi_mapping[hdpi_code];
- /* image_width is set to the correct number of pixels by calling
+ /* image_width is set to the correct number of pixels by calling
fxn. This might be the reason we can't do high res full width
scans though...not sure. */
/*s->user_parms.image_width /= 4; */