update the progress less often.

2008-11-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp-mask.c (unsharp_region): update the
	progress less often.


svn path=/trunk/; revision=27599
This commit is contained in:
Sven Neumann 2008-11-10 10:44:03 +00:00 committed by Sven Neumann
parent ff5e76cf5c
commit e4b3589dab
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-11-10 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp-mask.c (unsharp_region): update the
progress less often.
2008-11-10 Sven Neumann <sven@gimp.org>
* app/actions/text-tool-actions.c (text_tool_actions): added

View file

@ -456,7 +456,7 @@ unsharp_region (GimpPixelRgn *srcPR,
blur_line (ctable, cmatrix, cmatrix_length, src, dest, width, bytes);
gimp_pixel_rgn_set_row (destPR, dest, x1, y1 + row, width);
if (show_progress && row % 8 == 0)
if (show_progress && row % 16 == 0)
gimp_progress_update ((gdouble) row / (3 * height));
}
@ -467,7 +467,7 @@ unsharp_region (GimpPixelRgn *srcPR,
blur_line (ctable, cmatrix, cmatrix_length, src, dest, height, bytes);
gimp_pixel_rgn_set_col (destPR, dest, x1 + col, y1, height);
if (show_progress && col % 8 == 0)
if (show_progress && col % 16 == 0)
gimp_progress_update ((gdouble) col / (3 * width) + 0.33);
}
@ -505,7 +505,7 @@ unsharp_region (GimpPixelRgn *srcPR,
}
}
if (show_progress && row % 8 == 0)
if (show_progress && row % 16 == 0)
gimp_progress_update ((gdouble) row / (3 * height) + 0.67);
gimp_pixel_rgn_set_row (destPR, dest, x1, y1 + row, width);