From c2af4a13fda46162887028487d7dccd1652feebc Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 22 Feb 2008 07:43:21 +0000 Subject: [PATCH] fixed the same bug in another place svn path=/trunk/; revision=24939 --- plug-ins/common/wind.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/plug-ins/common/wind.c b/plug-ins/common/wind.c index 4e924cf691..37615fb1e5 100644 --- a/plug-ins/common/wind.c +++ b/plug-ins/common/wind.c @@ -310,18 +310,20 @@ render_blast (GimpDrawable *drawable, else { if (gimp_drawable_mask_intersect (drawable->drawable_id, - &x1, &y1, &x2, &y2)) + &x1, &y1, &width, &height)) { gimp_progress_init (_("Rendering blast")); - width = x2 - x1; - height = y2 - y1; + x2 = x1 + width; + y2 = y1 + height; gimp_pixel_rgn_init (&dest_region, drawable, x1, y1, width, height, TRUE, TRUE); } else - return; + { + return; + } } gimp_pixel_rgn_init (&src_region, drawable, @@ -356,7 +358,9 @@ render_blast (GimpDrawable *drawable, else { gimp_pixel_rgn_set_row (&dest_region, buffer, x1, row, width); - gimp_progress_update ((double) (row - y1)/ (double) (height)); + + if (row % 8 == 0) + gimp_progress_update ((double) (row - y1)/ (double) (height)); } if (marker) @@ -481,7 +485,9 @@ render_wind (GimpDrawable *drawable, else { gimp_pixel_rgn_set_row (&dest_region, sb, x1, row, width); - gimp_progress_update ((double) (row - y1)/ (double) (height)); + + if (row % 8 == 0) + gimp_progress_update ((double) (row - y1)/ (double) (height)); } }