Formating, simplification and fixed operator precedence for the seed (not

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

svn path=/trunk/; revision=27487
This commit is contained in:
Martin Nordholts 2008-10-31 07:04:31 +00:00
parent fc7e65e783
commit b5733dd32e
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
2008-10-31 Martin Nordholts <martinn@svn.gnome.org>
* app/gegl/gimpoperationpointlayermode.c
(gimp_operation_point_layer_mode_process): Formating and
simplification.
(gimp_operation_point_layer_mode_process): Formating,
simplification and fixed operator precedence for the seed (not
that it matters much).
2008-10-31 Martin Nordholts <martinn@svn.gnome.org>

View File

@ -509,8 +509,8 @@ gimp_operation_point_layer_mode_process (GeglOperation *operation,
* 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))
{