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 scan
merge-requests/1/head
Stphane Voltz 2009-10-02 06:24:39 +02:00
rodzic effbffcf0c
commit 90a9c598d6
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

@ -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