push pixels outwards not to the center as suggested by Chad Daelhousen

2004-05-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mblur.c (mblur_zoom): push pixels outwards not
	to the center as suggested by Chad Daelhousen (bug #142968).
This commit is contained in:
Sven Neumann 2004-05-31 11:42:40 +00:00 committed by Sven Neumann
parent d834897a52
commit caf4551bad
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-05-31 Sven Neumann <sven@gimp.org>
* plug-ins/common/mblur.c (mblur_zoom): push pixels outwards not
to the center as suggested by Chad Daelhousen (bug #142968).
2004-05-31 Sven Neumann <sven@gimp.org>
* plug-ins/common/mblur.c: applied patch from William Skaggs that

View File

@ -637,8 +637,8 @@ mblur_zoom (GimpDrawable *drawable)
for (i = 0; i < n; ++i)
{
xx = center_x + (x - center_x) * (1.0 + f * i);
yy = center_y + (y - center_y) * (1.0 + f * i);
xx = center_x + (x - center_x) * (1.0 - f * i);
yy = center_y + (y - center_y) * (1.0 - f * i);
if ((yy < sel_y1) || (yy >= sel_y2) ||
(xx < sel_x1) || (xx >= sel_x2))