]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add foreground boldness aggressiveness constraint
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 18:11:44 +0000 (19:11 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 18:11:44 +0000 (19:11 +0100)
src/kds_s2000w_net.c

index 7bb2647208447f5d378f77bf590aba75215c6390..2b435c7c01199f5062ad424724acc12faa32b403 100644 (file)
@@ -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";