From: Bastian Dehn Date: Sat, 27 Jan 2024 18:01:11 +0000 (+0100) Subject: add constraint foreground boldness mode X-Git-Tag: v1.0.0^2~422 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=52f3c725ebaa04f5f88650f535f77e0f1967db30;p=sane-kds-s2000w-net.git add constraint foreground boldness mode --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 0b45dab..7bb2647 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -269,9 +269,14 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor( option_descriptors[option].name = "foregroundboldnessmode"; option_descriptors[option].title = "foregroundboldnessmode"; option_descriptors[option].desc = "foregroundboldnessmode"; - 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_STRING_LIST; + SANE_String_Const* constraint_foreground_boldness_mode = malloc(sizeof(char*) * 4); + constraint_foreground_boldness_mode[0] = "None"; + constraint_foreground_boldness_mode[1] = "AutomaticAdvanced"; + constraint_foreground_boldness_mode[2] = "Automatic"; + constraint_foreground_boldness_mode[3] = NULL; + option_descriptors[option].constraint.string_list = constraint_foreground_boldness_mode; break; case 16: option_descriptors[option].name = "foregroundboldnessaggressiveness";