mirror of https://github.com/GNOME/gimp.git
Bug 573488 – Small bug in Filter>Distorts>Ripple
2009-02-28 Sven Neumann <sven@gimp.org> Bug 573488 – Small bug in Filter>Distorts>Ripple * plug-ins/common/ripple.c (ripple_vertical): fixed bug spotted in SMEAR mode, pointed out by Andreas Groth. svn path=/trunk/; revision=28079
This commit is contained in:
parent
a586ea03fa
commit
e93e0b2543
|
@ -1,3 +1,10 @@
|
||||||
|
2009-02-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
Bug 573488 – Small bug in Filter>Distorts>Ripple
|
||||||
|
|
||||||
|
* plug-ins/common/ripple.c (ripple_vertical): fixed bug spotted in
|
||||||
|
SMEAR mode, pointed out by Andreas Groth.
|
||||||
|
|
||||||
2009-02-28 Sven Neumann <sven@gimp.org>
|
2009-02-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
Bug 520078 – Rotate brushes
|
Bug 520078 – Rotate brushes
|
||||||
|
|
|
@ -308,6 +308,8 @@ run (const gchar *name,
|
||||||
values[1].data.d_string = error->message;
|
values[1].data.d_string = error->message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_printerr ("%s status: %d\n", G_STRFUNC, status);
|
||||||
|
|
||||||
values[0].data.d_status = status;
|
values[0].data.d_status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,7 @@ ripple_vertical (gint x,
|
||||||
gint bpp,
|
gint bpp,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
RippleParam_t *param = (RippleParam_t*) data;
|
RippleParam_t *param = data;
|
||||||
GimpPixelFetcher *pft;
|
GimpPixelFetcher *pft;
|
||||||
guchar pixel[2][4];
|
guchar pixel[2][4];
|
||||||
gdouble needy;
|
gdouble needy;
|
||||||
|
@ -277,19 +277,23 @@ ripple_vertical (gint x,
|
||||||
if (rvals.edges == WRAP)
|
if (rvals.edges == WRAP)
|
||||||
{
|
{
|
||||||
needy = fmod(needy, height);
|
needy = fmod(needy, height);
|
||||||
|
|
||||||
if (needy < 0.0)
|
if (needy < 0.0)
|
||||||
needy += height;
|
needy += height;
|
||||||
yi = (yi % height);
|
|
||||||
|
yi = yi % height;
|
||||||
|
|
||||||
if (yi < 0)
|
if (yi < 0)
|
||||||
yi += height;
|
yi += height;
|
||||||
yi_a = (yi+1) % height;
|
|
||||||
|
yi_a = yi_a % height;
|
||||||
}
|
}
|
||||||
/* Smear out the edges of the image by repeating pixels. */
|
/* Smear out the edges of the image by repeating pixels. */
|
||||||
else if (rvals.edges == SMEAR)
|
else if (rvals.edges == SMEAR)
|
||||||
{
|
{
|
||||||
needy = CLAMP (needy, 0, height - 1);
|
needy = CLAMP (needy, 0, height - 1);
|
||||||
yi = CLAMP (yi , 0, height - 1);
|
yi = CLAMP (yi , 0, height - 1);
|
||||||
yi_a = CLAMP (yi_a + 1, 0, height - 1);
|
yi_a = CLAMP (yi_a , 0, height - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rvals.antialias)
|
if (rvals.antialias)
|
||||||
|
|
Loading…
Reference in New Issue