gimp r27487 - in trunk: . app/gegl



Author: martinn
Date: Fri Oct 31 07:04:31 2008
New Revision: 27487
URL: http://svn.gnome.org/viewvc/gimp?rev=27487&view=rev

Log:
* app/gegl/gimpoperationpointlayermode.c
(gimp_operation_point_layer_mode_process): Formating,
simplification and fixed operator precedence for the seed (not
that it matters much).


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	Fri Oct 31 07:04:31 2008
@@ -509,8 +509,8 @@
            * seed depend on the pixel position (modulo 1024)
            */
           g_rand_set_seed (rand,
-                           (roi->x + sample - (sample / roi->width) * roi->width) % 1024 *
-                           (roi->y + sample / roi->width)                         % 1024);
+                           ((roi->x + sample - (sample / roi->width) * roi->width) % 1024) *
+                           ((roi->y + sample / roi->width)                         % 1024));
 
           if (layA * G_MAXUINT32 >= g_rand_int (rand))
             {



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