gimp r27486 - in trunk: . app/gegl



Author: martinn
Date: Thu Oct 30 23:37:45 2008
New Revision: 27486
URL: http://svn.gnome.org/viewvc/gimp?rev=27486&view=rev

Log:
* app/gegl/gimpoperationpointlayermode.c
(gimp_operation_point_layer_mode_process): Formating and
simplification.


Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimpoperationpointlayermode.c

Modified: trunk/app/gegl/gimpoperationpointlayermode.c
==============================================================================
--- trunk/app/gegl/gimpoperationpointlayermode.c	(original)
+++ trunk/app/gegl/gimpoperationpointlayermode.c	Thu Oct 30 23:37:45 2008
@@ -278,22 +278,23 @@
                                          glong                samples,
                                          const GeglRectangle *roi)
 {
-  GimpOperationPointLayerMode *self = GIMP_OPERATION_POINT_LAYER_MODE (operation);
+  GimpOperationPointLayerMode *self       = GIMP_OPERATION_POINT_LAYER_MODE (operation);
+  GimpLayerModeEffects         blend_mode = self->blend_mode;
 
-  gfloat   *in     = in_buf;     /* composite of layers below */
-  gfloat   *lay    = aux_buf;    /* layer */
-  gfloat   *out    = out_buf;    /* resulting composite */
-  GRand    *rand   = NULL;
-  glong     sample = samples;
-  gint      c      = 0;
-  gfloat    new[3] = { 0.0, 0.0, 0.0 };
+  gfloat *in     = in_buf;     /* composite of layers below */
+  gfloat *lay    = aux_buf;    /* layer */
+  gfloat *out    = out_buf;    /* resulting composite */
+  GRand  *rand   = NULL;
+  glong   sample = samples;
+  gint    c      = 0;
+  gfloat  new[3] = { 0.0, 0.0, 0.0 };
 
-  if (self->blend_mode == GIMP_DISSOLVE_MODE)
+  if (blend_mode == GIMP_DISSOLVE_MODE)
     rand = g_rand_new ();
 
   while (sample--)
     {
-      switch (self->blend_mode)
+      switch (blend_mode)
         {
         case GIMP_NORMAL_MODE:
           /* Porter-Duff A over B */
@@ -475,7 +476,7 @@
            *
            * f(Sc, Dc) = New color depending on mode
            */
-          gimp_operation_point_layer_mode_get_new_color_hsv (self->blend_mode,
+          gimp_operation_point_layer_mode_get_new_color_hsv (blend_mode,
                                                              in,
                                                              lay,
                                                              new);
@@ -488,7 +489,7 @@
            *
            * f(Sc, Dc) = New color
            */
-          gimp_operation_point_layer_mode_get_new_color_hsl (self->blend_mode,
+          gimp_operation_point_layer_mode_get_new_color_hsl (blend_mode,
                                                              in,
                                                              lay,
                                                              new);



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