[gimp/gimp-2-10] pdb: Updating the parameter range for brightness



commit fc5dfa1f7589242b612dae59c4f22019fd47f1ae
Author: Nikc <nikcdc gmail com>
Date:   Sat Mar 26 20:11:49 2022 +0000

    pdb: Updating the parameter range for brightness

 app/pdb/drawable-color-cmds.c   | 6 +++---
 libgimp/gimpdrawablecolor_pdb.c | 2 +-
 pdb/groups/drawable_color.pdb   | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/app/pdb/drawable-color-cmds.c b/app/pdb/drawable-color-cmds.c
index 7c359c6c0f..877eb7a336 100644
--- a/app/pdb/drawable-color-cmds.c
+++ b/app/pdb/drawable-color-cmds.c
@@ -749,7 +749,7 @@ register_drawable_color_procs (GimpPDB *pdb)
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-drawable-brightness-contrast",
                                      "Modify brightness/contrast in the specified drawable.",
-                                     "This procedures allows the brightness and contrast of the specified 
drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -0.5 and 0.5.",
+                                     "This procedures allows the brightness and contrast of the specified 
drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -1.0 and 1.0.",
                                      "Spencer Kimball & Peter Mattis",
                                      "Spencer Kimball & Peter Mattis",
                                      "1997",
@@ -764,13 +764,13 @@ register_drawable_color_procs (GimpPDB *pdb)
                                g_param_spec_double ("brightness",
                                                     "brightness",
                                                     "Brightness adjustment",
-                                                    -0.5, 0.5, -0.5,
+                                                    -1.0, 1.0, -1.0,
                                                     GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                g_param_spec_double ("contrast",
                                                     "contrast",
                                                     "Contrast adjustment",
-                                                    -0.5, 0.5, -0.5,
+                                                    -1.0, 1.0, -1.0,
                                                     GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
diff --git a/libgimp/gimpdrawablecolor_pdb.c b/libgimp/gimpdrawablecolor_pdb.c
index dcc12e3794..f98cd1fb8c 100644
--- a/libgimp/gimpdrawablecolor_pdb.c
+++ b/libgimp/gimpdrawablecolor_pdb.c
@@ -45,7 +45,7 @@
  *
  * This procedures allows the brightness and contrast of the specified
  * drawable to be modified. Both 'brightness' and 'contrast' parameters
- * are defined between -0.5 and 0.5.
+ * are defined between -1.0 and 1.0.
  *
  * Returns: TRUE on success.
  *
diff --git a/pdb/groups/drawable_color.pdb b/pdb/groups/drawable_color.pdb
index be70c1ba80..f0c8351076 100644
--- a/pdb/groups/drawable_color.pdb
+++ b/pdb/groups/drawable_color.pdb
@@ -22,7 +22,7 @@ sub drawable_brightness_contrast {
     $help = <<'HELP';
 This procedures allows the brightness and contrast of the specified drawable to
 be modified.  Both 'brightness' and 'contrast' parameters are defined between
--0.5 and 0.5.
+-1.0 and 1.0.
 HELP
 
     &std_pdb_misc;
@@ -32,9 +32,9 @@ HELP
     @inargs = (
        { name => 'drawable', type => 'drawable',
          desc => 'The drawable' },
-       { name => 'brightness', type => '-0.5 <= float <= 0.5',
+       { name => 'brightness', type => '-1.0 <= float <= 1.0',
          desc => 'Brightness adjustment' },
-       { name => 'contrast', type => '-0.5 <= float <= 0.5',
+       { name => 'contrast', type => '-1.0 <= float <= 1.0',
          desc => 'Contrast adjustment' }
     );
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]