mirror of https://github.com/GNOME/gimp.git
reduced the number of progress updates.
2007-05-04 Sven Neumann <sven@gimp.org> * plug-ins/common/dog.c: reduced the number of progress updates. svn path=/trunk/; revision=22405
This commit is contained in:
parent
3dd732d750
commit
2b2f5c24fe
|
@ -1,3 +1,7 @@
|
|||
2007-05-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/dog.c: reduced the number of progress updates.
|
||||
|
||||
2007-05-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/gauss.c (gauss_rle): fixed a bug in my last change.
|
||||
|
|
|
@ -197,6 +197,7 @@ run (const gchar *name,
|
|||
/* Make sure all the arguments are there! */
|
||||
if (nparams != 7)
|
||||
status = GIMP_PDB_CALLING_ERROR;
|
||||
|
||||
if (status == GIMP_PDB_SUCCESS)
|
||||
{
|
||||
dogvals.inner = param[3].data.d_float;
|
||||
|
@ -219,7 +220,9 @@ run (const gchar *name,
|
|||
}
|
||||
}
|
||||
else
|
||||
status = GIMP_PDB_CALLING_ERROR;
|
||||
{
|
||||
status = GIMP_PDB_CALLING_ERROR;
|
||||
}
|
||||
|
||||
if (status == GIMP_PDB_SUCCESS)
|
||||
{
|
||||
|
@ -229,13 +232,15 @@ run (const gchar *name,
|
|||
{
|
||||
gimp_progress_init (_("DoG Edge Detect"));
|
||||
|
||||
|
||||
/* run the Difference of Gaussians */
|
||||
gimp_image_undo_group_start (image_ID);
|
||||
|
||||
dog (image_ID, drawable, dogvals.inner, dogvals.outer, TRUE);
|
||||
|
||||
gimp_image_undo_group_end (image_ID);
|
||||
|
||||
gimp_progress_update (1.0);
|
||||
|
||||
/* Store data */
|
||||
if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
gimp_set_data (PLUG_IN_PROC, &dogvals, sizeof (DoGValues));
|
||||
|
@ -764,7 +769,7 @@ gauss_rle (GimpDrawable *drawable,
|
|||
{
|
||||
progress += height;
|
||||
|
||||
if ((col % 20) == 0)
|
||||
if ((col % 32) == 0)
|
||||
gimp_progress_update (0.5 * (pass + (progress / max_progress)));
|
||||
}
|
||||
}
|
||||
|
@ -833,7 +838,7 @@ gauss_rle (GimpDrawable *drawable,
|
|||
{
|
||||
progress += width;
|
||||
|
||||
if ((row % 20) == 0)
|
||||
if ((row % 32) == 0)
|
||||
gimp_progress_update (0.5 * (pass + (progress / max_progress)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue