fix line cnt computing to make lineart work again

merge-requests/1/head
Stphane Voltz 2010-02-23 14:06:24 +01:00
rodzic 3cd5f07268
commit d7e193db91
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -979,9 +979,13 @@ gl646_setup_registers (Genesys_Device * dev,
* color mode */ * color mode */
if (dev->model->is_cis == SANE_TRUE) if (dev->model->is_cis == SANE_TRUE)
{ {
linecnt *= 3; gl646_set_triple_reg (regs, REG_LINCNT, linecnt * 3);
linecnt *= channels;
}
else
{
gl646_set_triple_reg (regs, REG_LINCNT, linecnt);
} }
gl646_set_triple_reg (regs, REG_LINCNT, linecnt);
/* scanner's x coordinates are expressed in physical DPI but they must be divided by cksel */ /* scanner's x coordinates are expressed in physical DPI but they must be divided by cksel */
sx = startx / sensor->cksel; sx = startx / sensor->cksel;