Commit 77b7161a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/core/gimp-transform-region.[ch] app/core/gimpchannel.c

2007-09-10  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-region.[ch]
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpdrawable.c
	* app/core/gimpimage-item-list.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimplayer.c
	* app/paint/gimpperspectiveclone.c
	* app/vectors/gimpvectors.c: removed supersample parameter from
	transform functions and perform it depending on the interpolation
	type (bug #473265).

	* app/tools/gimptransformoptions.[ch]
	* app/tools/gimptransformtool.c: removed Supersample toggle from
	the transform tool options.

	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: document that the
	supersample parameter is unused and improved documentation of the
	recursion-level parameter.

	* app/pdb/transform_tools_cmds.c
	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.c: regenerated.

svn path=/trunk/; revision=23494
parent 5062ba3e
2007-09-10 Sven Neumann <sven@gimp.org>
* app/core/gimp-transform-region.[ch]
* app/core/gimpchannel.c
* app/core/gimpdrawable-transform.[ch]
* app/core/gimpdrawable.c
* app/core/gimpimage-item-list.[ch]
* app/core/gimpitem-linked.[ch]
* app/core/gimpitem.[ch]
* app/core/gimplayer.c
* app/paint/gimpperspectiveclone.c
* app/vectors/gimpvectors.c: removed supersample parameter from
transform functions and perform it depending on the interpolation
type (bug #473265).
* app/tools/gimptransformoptions.[ch]
* app/tools/gimptransformtool.c: removed Supersample toggle from
the transform tool options.
* tools/pdbgen/pdb/drawable_transform.pdb
* tools/pdbgen/pdb/transform_tools.pdb: document that the
supersample parameter is unused and improved documentation of the
recursion-level parameter.
* app/pdb/transform_tools_cmds.c
* app/pdb/drawable_transform_cmds.c
* libgimp/gimpdrawabletransform_pdb.c: regenerated.
2007-09-10 Sven Neumann <sven@gimp.org>
* app/tools/gimpperspectiveclonetool.c
......@@ -70,7 +70,6 @@ static void gimp_transform_region_linear (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress);
......@@ -86,7 +85,6 @@ static void gimp_transform_region_cubic (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress);
......@@ -102,7 +100,6 @@ static void gimp_transform_region_lanczos (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress);
......@@ -180,7 +177,6 @@ gimp_transform_region (GimpPickable *pickable,
gint dest_y2,
const GimpMatrix3 *matrix,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpProgress *progress)
{
......@@ -259,7 +255,7 @@ gimp_transform_region (GimpPickable *pickable,
gimp_transform_region_linear (orig_tiles, destPR,
dest_x1, dest_y1, dest_x2, dest_y2,
u1, v1, u2, v2,
&m, alpha, supersample, recursion_level,
&m, alpha, recursion_level,
bg_color, progress);
break;
......@@ -267,7 +263,7 @@ gimp_transform_region (GimpPickable *pickable,
gimp_transform_region_cubic (orig_tiles, destPR,
dest_x1, dest_y1, dest_x2, dest_y2,
u1, v1, u2, v2,
&m, alpha, supersample, recursion_level,
&m, alpha, recursion_level,
bg_color, progress);
break;
......@@ -275,7 +271,7 @@ gimp_transform_region (GimpPickable *pickable,
gimp_transform_region_lanczos (orig_tiles, destPR,
dest_x1, dest_y1, dest_x2, dest_y2,
u1, v1, u2, v2,
&m, alpha, supersample, recursion_level,
&m, alpha, recursion_level,
bg_color, progress);
break;
}
......@@ -387,7 +383,6 @@ gimp_transform_region_linear (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress)
......@@ -433,8 +428,7 @@ gimp_transform_region_linear (TileManager *orig_tiles,
normalize_coords (5, tu, tv, tw, u, v);
/* Set the destination pixels */
if (supersample &&
supersample_dtest (u[1], v[1], u[2], v[2],
if (supersample_dtest (u[1], v[1], u[2], v[2],
u[3], v[3], u[4], v[4]))
{
sample_adapt (orig_tiles,
......@@ -491,7 +485,6 @@ gimp_transform_region_cubic (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress)
......@@ -536,8 +529,7 @@ gimp_transform_region_cubic (TileManager *orig_tiles,
/* normalize homogeneous coords */
normalize_coords (5, tu, tv, tw, u, v);
if (supersample &&
supersample_dtest (u[1], v[1], u[2], v[2],
if (supersample_dtest (u[1], v[1], u[2], v[2],
u[3], v[3], u[4], v[4]))
{
sample_adapt (orig_tiles,
......@@ -594,7 +586,6 @@ gimp_transform_region_lanczos (TileManager *orig_tiles,
gint v2,
const GimpMatrix3 *m,
gint alpha,
gboolean supersample,
gint recursion_level,
const guchar *bg_color,
GimpProgress *progress)
......@@ -644,8 +635,7 @@ gimp_transform_region_lanczos (TileManager *orig_tiles,
/* normalize homogeneous coords */
normalize_coords (5, tu, tv, tw, u, v);
if (supersample &&
supersample_dtest (u[1], v[1], u[2], v[2],
if (supersample_dtest (u[1], v[1], u[2], v[2],
u[3], v[3], u[4], v[4]))
{
sample_adapt (orig_tiles,
......
......@@ -30,7 +30,6 @@ void gimp_transform_region (GimpPickable *pickable,
gint dest_y2,
const GimpMatrix3 *matrix,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpProgress *progress);
......
......@@ -114,7 +114,6 @@ static void gimp_channel_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......@@ -654,7 +653,6 @@ gimp_channel_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -664,8 +662,9 @@ gimp_channel_transform (GimpItem *item,
GIMP_ITEM_CLASS (parent_class)->transform (item, context, matrix, direction,
interpolation_type,
supersample, recursion_level,
clip_result, progress);
recursion_level,
clip_result,
progress);
}
static gboolean
......
......@@ -74,7 +74,6 @@ gimp_drawable_transform_tiles_affine (GimpDrawable *drawable,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -143,7 +142,6 @@ gimp_drawable_transform_tiles_affine (GimpDrawable *drawable,
y2,
&inv,
interpolation_type,
supersample,
recursion_level,
progress);
......@@ -537,7 +535,6 @@ gimp_drawable_transform_affine (GimpDrawable *drawable,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -576,7 +573,6 @@ gimp_drawable_transform_affine (GimpDrawable *drawable,
matrix,
GIMP_TRANSFORM_FORWARD,
interpolation_type,
supersample,
recursion_level,
clip_result,
progress);
......
......@@ -39,7 +39,6 @@ TileManager * gimp_drawable_transform_tiles_affine (GimpDrawable *draw
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......@@ -63,7 +62,6 @@ gboolean gimp_drawable_transform_affine (GimpDrawable *draw
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......
......@@ -110,7 +110,6 @@ static void gimp_drawable_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......@@ -556,7 +555,6 @@ gimp_drawable_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -575,7 +573,7 @@ gimp_drawable_transform (GimpItem *item,
drawable->tiles,
matrix, direction,
interpolation_type,
supersample, recursion_level,
recursion_level,
clip_result,
progress);
......
......@@ -121,7 +121,6 @@ gimp_image_item_list_transform (GimpImage *image,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -140,8 +139,7 @@ gimp_image_item_list_transform (GimpImage *image,
for (l = list; l; l = g_list_next (l))
gimp_item_transform (GIMP_ITEM (l->data), context,
matrix, direction,
interpolation_type,
supersample, recursion_level,
interpolation_type, recursion_level,
clip_result, progress);
gimp_image_undo_group_end (image);
......
......@@ -44,7 +44,6 @@ void gimp_image_item_list_transform (GimpImage *image,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......
......@@ -120,7 +120,6 @@ gimp_item_linked_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -139,8 +138,7 @@ gimp_item_linked_transform (GimpItem *item,
gimp_image_item_list_transform (gimp_item_get_image (item), list, context,
matrix, direction,
interpolation_type,
supersample, recursion_level,
interpolation_type, recursion_level,
clip_result, progress);
g_list_free (list);
......
......@@ -40,7 +40,6 @@ void gimp_item_linked_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......
......@@ -975,7 +975,6 @@ gimp_item_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -996,8 +995,7 @@ gimp_item_transform (GimpItem *item,
item_class->transform_desc);
item_class->transform (item, context, matrix, direction, interpolation,
supersample, recursion_level,
clip_result, progress);
recursion_level, clip_result, progress);
gimp_image_undo_group_end (image);
}
......
......@@ -105,7 +105,6 @@ struct _GimpItemClass
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......@@ -207,7 +206,6 @@ void gimp_item_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......
......@@ -133,7 +133,6 @@ static void gimp_layer_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress);
......@@ -776,7 +775,6 @@ gimp_layer_transform (GimpItem *item,
const GimpMatrix3 *matrix,
GimpTransformDirection direction,
GimpInterpolationType interpolation_type,
gboolean supersample,
gint recursion_level,
GimpTransformResize clip_result,
GimpProgress *progress)
......@@ -792,14 +790,14 @@ gimp_layer_transform (GimpItem *item,
GIMP_ITEM_CLASS (parent_class)->transform (item, context, matrix, direction,
interpolation_type,
supersample, recursion_level,
clip_result, progress);
recursion_level,
clip_result,
progress);
if (layer->mask)
gimp_item_transform (GIMP_ITEM (layer->mask), context,
matrix, direction,
interpolation_type,
supersample, recursion_level,
interpolation_type, recursion_level,
clip_result, progress);
}
......
......@@ -399,8 +399,7 @@ gimp_perspective_clone_get_source (GimpSourceCore *source_core,
&destPR,
x1d, y1d, x2d, y2d,
&matrix,
GIMP_INTERPOLATION_LINEAR,
FALSE, 0, NULL);
GIMP_INTERPOLATION_LINEAR, 0, NULL);
tile_manager_unref (orig_tiles);
......
......@@ -146,8 +146,7 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -220,8 +219,7 @@ drawable_transform_flip_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -306,8 +304,7 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -390,8 +387,7 @@ drawable_transform_perspective_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -517,8 +513,7 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -595,8 +590,7 @@ drawable_transform_rotate_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -672,8 +666,7 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -747,8 +740,7 @@ drawable_transform_scale_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -820,8 +812,7 @@ drawable_transform_shear_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -891,8 +882,7 @@ drawable_transform_shear_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -975,8 +965,7 @@ drawable_transform_2d_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -1057,8 +1046,7 @@ drawable_transform_2d_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -1149,8 +1137,7 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, transform_direction,
interpolation, supersample,
recursion_level,
interpolation, recursion_level,
clip_result, progress);
if (progress)
......@@ -1239,8 +1226,7 @@ drawable_transform_matrix_default_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type,
interpolate, 3,
interpolation_type, 3,
clip_result, progress);
if (progress)
......@@ -1376,13 +1362,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -1548,13 +1534,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -1781,13 +1767,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -1931,13 +1917,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -2072,13 +2058,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -2231,13 +2217,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......@@ -2429,13 +2415,13 @@ register_drawable_transform_procs (GimpPDB *pdb)
gimp_procedure_add_argument (procedure,
g_param_spec_boolean ("supersample",
"supersample",
"Whether to perform supersample",
"This parameter is ignored, supersampling is performed based on the interpolation type",
FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("recursion-level",
"recursion level",
"Level of recursion (3 is a nice default)",
"Maximum recursion level used for supersampling (3 is a nice value)",
1, G_MAXINT32, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
......
......@@ -145,7 +145,7 @@ perspective_invoker (GimpProcedure *procedure,
success = gimp_drawable_transform_affine (drawable, context,
&matrix,
GIMP_TRANSFORM_FORWARD,
interpolation_type, TRUE, 3,
interpolation_type, 3,
FALSE, progress);
if (progress)
......@@ -212,7 +212,7 @@ rotate_invoker (GimpProcedure *procedure,
success = gimp_drawable_transform_affine (drawable, context,
&matrix,
GIMP_TRANSFORM_FORWARD,
interpolation_type, FALSE, 3,
interpolation_type, 3,
FALSE, progress);
if (progress)
......@@ -286,7 +286,7 @@ scale_invoker (GimpProcedure *procedure,
success = gimp_drawable_transform_affine (drawable, context,
&matrix,
GIMP_TRANSFORM_FORWARD,
interpolation_type, TRUE, 3,
interpolation_type, 3,
FALSE, progress);
if (progress)
......@@ -355,7 +355,7 @@ shear_invoker (GimpProcedure *procedure,
success = gimp_drawable_transform_affine (drawable, context,
&matrix,
GIMP_TRANSFORM_FORWARD,
interpolation_type, FALSE, 3,
interpolation_type, 3,
FALSE, progress);
if (progress)
......@@ -428,7 +428,7 @@ transform_2d_invoker (GimpProcedure *procedure,
/* Transform the selection */
success = gimp_drawable_transform_affine (drawable, context,
&matrix, GIMP_TRANSFORM_FORWARD,
interpolation_type, TRUE, 3,
interpolation_type, 3,
FALSE, progress);
if (progress)
......
......@@ -46,8 +46,6 @@ enum
PROP_TYPE,
PROP_DIRECTION,
PROP_INTERPOLATION,
PROP_SUPERSAMPLE,
PROP_RECURSION_LEVEL,
PROP_CLIP,
PROP_PREVIEW_TYPE,
PROP_GRID_TYPE,
......@@ -104,25 +102,6 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
GIMP_TYPE_INTERPOLATION_TYPE,
GIMP_INTERPOLATION_LINEAR,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SUPERSAMPLE,
"supersample", NULL,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
#if 0
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_RECURSION_LEVEL,
"recursion-level", NULL,
1, 5, 3,
GIMP_PARAM_STATIC_STRINGS);
#endif
g_object_class_install_property (object_class, PROP_RECURSION_LEVEL,
g_param_spec_int ("recursion-level",
NULL, NULL,
1, 5, 3,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLIP,
"clip", NULL,
GIMP_TYPE_TRANSFORM_RESIZE,
......@@ -151,6 +130,7 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
static void
gimp_transform_options_init (GimpTransformOptions *options)
{
options->recursion_level = 3;
}
static void
......@@ -172,12 +152,6 @@ gimp_transform_options_set_property (GObject *object,
case PROP_INTERPOLATION:
options->interpolation = g_value_get_enum (value);
break;
case PROP_SUPERSAMPLE:
options->supersample = g_value_get_boolean (value);
break;
case PROP_RECURSION_LEVEL:
options->recursion_level = g_value_get_int (value);
break;
case PROP_CLIP:
options->clip = g_value_get_enum (value);
break;
......@@ -218,12 +192,6 @@ gimp_transform_options_get_property (GObject *object,
case PROP_INTERPOLATION:
g_value_set_enum (value, options->interpolation);
break;
case PROP_SUPERSAMPLE:
g_value_set_boolean (value, options->supersample);
break;
case PROP_RECURSION_LEVEL:
g_value_set_int (value, options->recursion_level);
break;
case PROP_CLIP:
g_value_set_enum (value, options