Commit 6a3e8b4c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

sprinkled more const qualifiers.

2008-08-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-region.c: sprinkled more const 
qualifiers.

	* app/paint-funcs/scale-region.c: call the progress callback 
less
	often.


svn path=/trunk/; revision=26790
parent 26645c55
2008-08-27 Sven Neumann <sven@gimp.org>
* app/core/gimp-transform-region.c: sprinkled more const qualifiers.
* app/paint-funcs/scale-region.c: call the progress callback less
often.
2008-08-27 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.c: moved hiding the dialog from
......
......@@ -117,50 +117,50 @@ static inline void normalize_coords (const gint coords,
gdouble *u,
gdouble *v);
static inline gboolean supersample_dtest (gdouble u0,
gdouble v0,
gdouble u1,
gdouble v1,
gdouble u2,
gdouble v2,
gdouble u3,
gdouble v3);
static inline gboolean supersample_dtest (const gdouble u0,
const gdouble v0,
const gdouble u1,
const gdouble v1,
const gdouble u2,
const gdouble v2,
const gdouble u3,
const gdouble v3);
static void sample_adapt (PixelSurround *surround,
gdouble uc,
gdouble vc,
gdouble u0,
gdouble v0,
gdouble u1,
gdouble v1,
gdouble u2,
gdouble v2,
gdouble u3,
gdouble v3,
gint level,
const gdouble uc,
const gdouble vc,
const gdouble u0,
const gdouble v0,
const gdouble u1,
const gdouble v1,
const gdouble u2,
const gdouble v2,
const gdouble u3,
const gdouble v3,
const gint level,
guchar *color,
gint bpp,
gint alpha);
const gint bpp,
const gint alpha);
static void sample_linear (PixelSurround *surround,
gdouble u,
gdouble v,
const gdouble u,
const gdouble v,
guchar *color,
gint bytes,
gint alpha);
const gint bytes,
const gint alpha);
static void sample_cubic (PixelSurround *surround,
gdouble u,
gdouble v,
const gdouble u,
const gdouble v,
guchar *color,
gint bytes,
gint alpha);
const gint bytes,
const gint alpha);
static void sample_lanczos (PixelSurround *surround,
const gfloat *lanczos,
gdouble u,
gdouble v,
const gdouble u,
const gdouble v,
guchar *color,
gint bytes,
gint alpha);
const gint bytes,
const gint alpha);
/* public functions */
......
......@@ -569,7 +569,12 @@ scale (TileManager *srcTM,
}
if (progress_callback)
progress_callback (0, max_progress, ((*progress)++), progress_data);
{
(*progress)++;
if (*progress % 8 == 0)
progress_callback (0, max_progress, *progress, progress_data);
}
}
if (kernel_lookup)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment