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

merge-requests/1/head
Nils Philippsen 2012-03-31 21:39:01 +02:00 zatwierdzone przez Nils Philippsen
rodzic 121afa695b
commit ed9ac6f15d
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -518,6 +518,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 != CS2_TYPE_LS2000 && s->type != CS2_TYPE_LS4000
&& s->type != CS2_TYPE_LS5000 && s->type != CS2_TYPE_LS8000)
o.cap |= SANE_CAP_INACTIVE;
o.constraint_type = SANE_CONSTRAINT_RANGE;
range = (SANE_Range *) cs2_xmalloc (sizeof (SANE_Range));
if (! range)