mirror of https://github.com/GNOME/gimp.git
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:
parent
fc7e65e783
commit
b5733dd32e
|
@ -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>
|
||||
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue