Fixed bug which made slide/negative scans unusable and changed area constrains for some hp3900 scanners

merge-requests/1/head
Jonathan Bravo Lopez 2007-12-21 13:10:19 +00:00
rodzic d3cc1b13a8
commit 97eeb13f6e
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -43,7 +43,7 @@
/* Backend info */
#define BACKEND_NAME hp3900
#define BACKEND_VRSN "0.10"
#define BACKEND_VRSN "0.11"
#define BACKEND_AUTHOR "Jonathan Bravo Lopez (JKD)"
#define BACKEND_EMAIL "jkdsoft@gmail.com"
#define BACKEND_URL "http://jkdsoftware.dyndns.org"

Wyświetl plik

@ -980,12 +980,12 @@ static SANE_Int cfg_constrains_get(struct st_constrains *constrain)
/*device , reflective , negative , transparent */
/* , {{left, width, top, height}, {left, width, top, height}, {left, width, top, height}}}, */
{ BQ5550 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}},
{ HP3800 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}},
{ HP3800 , {{ 0, 220, 0, 300}, { 89, 45, 0, 85}, { 89, 45, 0, 100}}},
{ HP3970 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}},
{ HP4070 , {{ 0, 220, 0, 300}, { 58, 99, 0, 197}, { 58, 99, 0, 197}}},
{ HP4370 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}},
{ HP4370 , {{ 0, 220, 0, 300}, { 90, 45, 0, 85}, { 90, 45, 0, 100}}},
{ UA4900 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}},
{HPG3010 , {{ 0, 220, 0, 300}, { 88, 42, 0, 83}, { 88, 42, 0, 83}}}
{HPG3010 , {{ 0, 220, 0, 300}, { 90, 45, 0, 85}, { 89, 45, 0, 100}}}
};
if (constrain != NULL)

Wyświetl plik

@ -11021,7 +11021,7 @@ GetOneLineInfo (struct st_device *dev, SANE_Int resolution,
if (Regs != NULL)
{
/* Copy scanner registers */
memcpy (Regs, &dev->init_regs, RT_BUFFER_LEN * sizeof (SANE_Byte));
memcpy (Regs, dev->init_regs, RT_BUFFER_LEN * sizeof (SANE_Byte));
/* Setting some registers */
for (a = 0x192; a <= 0x19d; a++)