From: Bastian Dehn Date: Sat, 27 Jan 2024 18:11:44 +0000 (+0100) Subject: add foreground boldness aggressiveness constraint X-Git-Tag: v1.0.0^2~421 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=fa354184abea3f226c1a94d48f11c0e43e86be7c;p=sane-kds-s2000w-net.git add foreground boldness aggressiveness constraint --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 7bb2647..2b435c7 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -282,9 +282,13 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor( option_descriptors[option].name = "foregroundboldnessaggressiveness"; option_descriptors[option].title = "foregroundboldnessaggressiveness"; option_descriptors[option].desc = "foregroundboldnessaggressiveness"; - option_descriptors[option].cap = SANE_CAP_SOFT_DETECT; - option_descriptors[option].constraint_type = SANE_CONSTRAINT_NONE; - option_descriptors[option].constraint.string_list = NULL; + option_descriptors[option].cap = SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT; + option_descriptors[option].constraint_type = SANE_CONSTRAINT_RANGE; + SANE_Range* constraint_foreground_boldness_aggressiveness = malloc(sizeof(SANE_Range)); + constraint_foreground_boldness_aggressiveness->min = -10; + constraint_foreground_boldness_aggressiveness->max = 10; + constraint_foreground_boldness_aggressiveness->quant = 1; + option_descriptors[option].constraint.range = constraint_foreground_boldness_aggressiveness; break; case 17: option_descriptors[option].name = "backgroundsmoothingmode";