[gimp/wip/alxsa/mypaint-brush-v2: 66/66] Minor formatting update




commit b3b5be818f436fe407aa2e45961d670426596b67
Author: Alx Sa <cmyk student gmail com>
Date:   Sun Oct 16 17:44:15 2022 +0000

    Minor formatting update

 app/paint/gimpmybrushsurface.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/app/paint/gimpmybrushsurface.c b/app/paint/gimpmybrushsurface.c
index be691353f8..1d134fa225 100644
--- a/app/paint/gimpmybrushsurface.c
+++ b/app/paint/gimpmybrushsurface.c
@@ -328,9 +328,9 @@ calculate_rr_antialiased (int  xp,
 
 /* -- Taken from helpers.c -- */
 void
-rgb_to_spectral (float r,
-                 float g,
-                 float b,
+rgb_to_spectral (float  r,
+                 float  g,
+                 float  b,
                  float *spectral_)
 {
   float offset = 1.0 - WGM_EPSILON;
@@ -405,10 +405,10 @@ get_color_pixels_accumulate (float    mask,
                              float    random_sample_rate,
                              uint16_t interval_counter)
 {
-  const int random_sample_threshold = (int)(random_sample_rate * G_MAXINT);
-  float avg_spectral[10] = {0};
-  float avg_rgb[3] = {*sum_r, *sum_g, *sum_b};
-  float spec_rgb[3] = {0};
+  const int random_sample_threshold = (int) (random_sample_rate * G_MAXINT);
+  float     avg_spectral[10]        = {0};
+  float     avg_rgb[3]              = {*sum_r, *sum_g, *sum_b};
+  float     spec_rgb[3]             = {0};
 
   /* V1 Brush Code */
   if (paint < 0.0f)
@@ -456,6 +456,7 @@ get_color_pixels_accumulate (float    mask,
 
       *sum_a += a;
     }
+
   spectral_to_rgb (avg_spectral, spec_rgb);
 
   *sum_r = spec_rgb[0] * paint + (1.0 - paint) * avg_rgb[0];


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