coolscan3: only offer samples-per-scan for devices supporting it

(ported from coolscan2, commit ed9ac6f15d)
merge-requests/1/head
Nils Philippsen 2012-12-14 18:12:01 +01:00
rodzic 82139b0823
commit 6589dbd5c0
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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