kopia lustrzana https://gitlab.com/sane-project/backends
fix line cnt computing to make lineart work again
rodzic
3cd5f07268
commit
d7e193db91
|
@ -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;
|
||||||
|
|
Ładowanie…
Reference in New Issue