fix wpl computing for HP2400/HP3670

merge-requests/1/head
Stphane Voltz 2010-01-16 13:40:10 +01:00
rodzic ab33e9a4d1
commit ad7bb2ac18
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -994,7 +994,7 @@ gl646_setup_registers (Genesys_Device * dev,
/* wpl must be computed according to the scan's resolution */
/* in fact, wpl _gives_ the actual scan resolution */
wpl = ((endx - startx) * sensor->xdpi) / dev->sensor.optical_res;
wpl = (((endx - startx) * sensor->xdpi) / dev->sensor.optical_res)*sensor->cksel;
if (depth == 16)
wpl *= 2;
if (dev->model->is_cis == SANE_FALSE)