kopia lustrzana https://gitlab.com/sane-project/backends
Fixed bug which made slide/negative scans unusable and changed area constrains for some hp3900 scanners
rodzic
d3cc1b13a8
commit
97eeb13f6e
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
/* Backend info */
|
/* Backend info */
|
||||||
#define BACKEND_NAME hp3900
|
#define BACKEND_NAME hp3900
|
||||||
#define BACKEND_VRSN "0.10"
|
#define BACKEND_VRSN "0.11"
|
||||||
#define BACKEND_AUTHOR "Jonathan Bravo Lopez (JKD)"
|
#define BACKEND_AUTHOR "Jonathan Bravo Lopez (JKD)"
|
||||||
#define BACKEND_EMAIL "jkdsoft@gmail.com"
|
#define BACKEND_EMAIL "jkdsoft@gmail.com"
|
||||||
#define BACKEND_URL "http://jkdsoftware.dyndns.org"
|
#define BACKEND_URL "http://jkdsoftware.dyndns.org"
|
||||||
|
|
|
@ -980,12 +980,12 @@ static SANE_Int cfg_constrains_get(struct st_constrains *constrain)
|
||||||
/*device , reflective , negative , transparent */
|
/*device , reflective , negative , transparent */
|
||||||
/* , {{left, width, top, height}, {left, width, top, height}, {left, width, top, height}}}, */
|
/* , {{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}}},
|
{ 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}}},
|
{ 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}}},
|
{ 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}}},
|
{ 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)
|
if (constrain != NULL)
|
||||||
|
|
|
@ -11021,7 +11021,7 @@ GetOneLineInfo (struct st_device *dev, SANE_Int resolution,
|
||||||
if (Regs != NULL)
|
if (Regs != NULL)
|
||||||
{
|
{
|
||||||
/* Copy scanner registers */
|
/* 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 */
|
/* Setting some registers */
|
||||||
for (a = 0x192; a <= 0x19d; a++)
|
for (a = 0x192; a <= 0x19d; a++)
|
||||||
|
|
Ładowanie…
Reference in New Issue