Commit 1563ae38 authored by Thomas Manni's avatar Thomas Manni

noise-solid: take care of negative coordinates in permutations table indexing

parent 9b4099db
......@@ -195,8 +195,8 @@ plain_noise (gdouble x,
sum = 0.0;
x *= s;
y *= s;
a = (gint) floor (x);
b = (gint) floor (y);
a = (gint) fabs (floor (x));
b = (gint) fabs (floor (y));
for (i = 0; i < 2; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment