kopia lustrzana https://gitlab.com/sane-project/backends
honor GENESYS_NO_CALIBRATION flag at scan time
- don't enable shading correction if device has the GENESYS_NO_CALIBRATION flag when setting registers for final scan final scanmerge-requests/1/head
rodzic
effbffcf0c
commit
90a9c598d6
|
@ -1,3 +1,7 @@
|
|||
2009-10-01 Stéphane Voltz <stef.dev at free.fr>
|
||||
* backend/genesys_gl646.c: honor GENESYS_NO_CALIBRATION device
|
||||
flag when setting registers for final scan
|
||||
|
||||
2009-10-01 Jonathan Bravo Lopez <jkdsoft at gmail dot com>
|
||||
* backend/hp3900_sane.c:
|
||||
fix bug 311991: "Bad option sizes let frontend (e.g. xsane) crash"
|
||||
|
|
|
@ -800,6 +800,12 @@ gl646_setup_registers (Genesys_Device * dev,
|
|||
else
|
||||
regs[reg_0x01].value &= ~REG01_CISSET;
|
||||
|
||||
/* if device has no calibration, don't enable shading correction */
|
||||
if(dev->model->flags & GENESYS_FLAG_NO_CALIBRATION)
|
||||
{
|
||||
regs[reg_0x01].value &= ~REG01_DVDSET;
|
||||
}
|
||||
|
||||
if (motor->fastmod)
|
||||
regs[reg_0x01].value |= REG01_FASTMOD;
|
||||
else
|
||||
|
|
Ładowanie…
Reference in New Issue