kopia lustrzana https://gitlab.com/sane-project/backends
coolscan3: only offer samples-per-scan for devices supporting it
(ported from coolscan2, commit ed9ac6f15d
)
merge-requests/1/head
rodzic
82139b0823
commit
6589dbd5c0
|
@ -474,6 +474,9 @@ sane_open(SANE_String_Const name, SANE_Handle * h)
|
|||
o.unit = SANE_UNIT_NONE;
|
||||
o.size = WSIZE;
|
||||
o.cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
|
||||
if (s->type != CS3_TYPE_LS2000 && s->type != CS3_TYPE_LS4000
|
||||
&& s->type != CS3_TYPE_LS5000 && s->type != CS3_TYPE_LS8000)
|
||||
o.cap |= SANE_CAP_INACTIVE;
|
||||
o.constraint_type = SANE_CONSTRAINT_RANGE;
|
||||
range = (SANE_Range *) cs3_xmalloc (sizeof (SANE_Range));
|
||||
if (! range)
|
||||
|
|
Ładowanie…
Reference in New Issue