From 46e4bc9866a7bd70fa3370cfd30fb99d021ca3f8 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Fri, 4 May 2007 10:49:22 +0000 Subject: [PATCH] reduced the number of progress updates. 2007-05-04 Mukund Sivaraman * plug-ins/common/fractaltrace.c: reduced the number of progress updates. svn path=/trunk/; revision=22406 --- ChangeLog | 5 +++++ plug-ins/common/fractaltrace.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5670419823..1fb9cfcabd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-04 Mukund Sivaraman + + * plug-ins/common/fractaltrace.c: reduced the number of progress + updates. + 2007-05-04 Sven Neumann * plug-ins/common/dog.c: reduced the number of progress updates. diff --git a/plug-ins/common/fractaltrace.c b/plug-ins/common/fractaltrace.c index e6b901c890..86c6bd22f8 100644 --- a/plug-ins/common/fractaltrace.c +++ b/plug-ins/common/fractaltrace.c @@ -502,9 +502,12 @@ filter (GimpDrawable *drawable) } pixels_set (x, y, &pixel); } - gimp_progress_update ((gdouble) (y-selection.y1) / selection.height); + if ((y % (selection.height / 100)) == 0) + gimp_progress_update ((gdouble) (y-selection.y1) / selection.height); } + gimp_progress_update (1.0); + pixels_store (); gimp_drawable_flush (drawable);