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
This commit is contained in:

committed by
Sven Neumann

parent
26645c5549
commit
6a3e8b4cca
@ -1,3 +1,10 @@
|
|||||||
|
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>
|
2008-08-27 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/tools/gimptransformtool.c: moved hiding the dialog from
|
* app/tools/gimptransformtool.c: moved hiding the dialog from
|
||||||
|
@ -117,50 +117,50 @@ static inline void normalize_coords (const gint coords,
|
|||||||
gdouble *u,
|
gdouble *u,
|
||||||
gdouble *v);
|
gdouble *v);
|
||||||
|
|
||||||
static inline gboolean supersample_dtest (gdouble u0,
|
static inline gboolean supersample_dtest (const gdouble u0,
|
||||||
gdouble v0,
|
const gdouble v0,
|
||||||
gdouble u1,
|
const gdouble u1,
|
||||||
gdouble v1,
|
const gdouble v1,
|
||||||
gdouble u2,
|
const gdouble u2,
|
||||||
gdouble v2,
|
const gdouble v2,
|
||||||
gdouble u3,
|
const gdouble u3,
|
||||||
gdouble v3);
|
const gdouble v3);
|
||||||
|
|
||||||
static void sample_adapt (PixelSurround *surround,
|
static void sample_adapt (PixelSurround *surround,
|
||||||
gdouble uc,
|
const gdouble uc,
|
||||||
gdouble vc,
|
const gdouble vc,
|
||||||
gdouble u0,
|
const gdouble u0,
|
||||||
gdouble v0,
|
const gdouble v0,
|
||||||
gdouble u1,
|
const gdouble u1,
|
||||||
gdouble v1,
|
const gdouble v1,
|
||||||
gdouble u2,
|
const gdouble u2,
|
||||||
gdouble v2,
|
const gdouble v2,
|
||||||
gdouble u3,
|
const gdouble u3,
|
||||||
gdouble v3,
|
const gdouble v3,
|
||||||
gint level,
|
const gint level,
|
||||||
guchar *color,
|
guchar *color,
|
||||||
gint bpp,
|
const gint bpp,
|
||||||
gint alpha);
|
const gint alpha);
|
||||||
|
|
||||||
static void sample_linear (PixelSurround *surround,
|
static void sample_linear (PixelSurround *surround,
|
||||||
gdouble u,
|
const gdouble u,
|
||||||
gdouble v,
|
const gdouble v,
|
||||||
guchar *color,
|
guchar *color,
|
||||||
gint bytes,
|
const gint bytes,
|
||||||
gint alpha);
|
const gint alpha);
|
||||||
static void sample_cubic (PixelSurround *surround,
|
static void sample_cubic (PixelSurround *surround,
|
||||||
gdouble u,
|
const gdouble u,
|
||||||
gdouble v,
|
const gdouble v,
|
||||||
guchar *color,
|
guchar *color,
|
||||||
gint bytes,
|
const gint bytes,
|
||||||
gint alpha);
|
const gint alpha);
|
||||||
static void sample_lanczos (PixelSurround *surround,
|
static void sample_lanczos (PixelSurround *surround,
|
||||||
const gfloat *lanczos,
|
const gfloat *lanczos,
|
||||||
gdouble u,
|
const gdouble u,
|
||||||
gdouble v,
|
const gdouble v,
|
||||||
guchar *color,
|
guchar *color,
|
||||||
gint bytes,
|
const gint bytes,
|
||||||
gint alpha);
|
const gint alpha);
|
||||||
|
|
||||||
|
|
||||||
/* public functions */
|
/* public functions */
|
||||||
|
@ -569,7 +569,12 @@ scale (TileManager *srcTM,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (progress_callback)
|
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)
|
if (kernel_lookup)
|
||||||
|
Reference in New Issue
Block a user