mirror of https://github.com/GNOME/gimp.git
gimpoperationcoefcalc: get_bounding_box now return the bounding box of the cage
This commit is contained in:
parent
b05460f292
commit
74a37c6266
|
@ -39,6 +39,7 @@ static void gimp_operation_cage_coef_calc_set_property (GObject
|
||||||
guint property_id,
|
guint property_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
static GeglRectangle gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation);
|
||||||
static gboolean gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
static gboolean gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
||||||
GeglBuffer *output,
|
GeglBuffer *output,
|
||||||
const GeglRectangle *roi);
|
const GeglRectangle *roi);
|
||||||
|
@ -63,6 +64,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
|
||||||
operation_class->description = "GIMP cage transform";
|
operation_class->description = "GIMP cage transform";
|
||||||
|
|
||||||
operation_class->prepare = gimp_operation_cage_coef_calc_prepare;
|
operation_class->prepare = gimp_operation_cage_coef_calc_prepare;
|
||||||
|
operation_class->get_bounding_box = gimp_operation_cage_coef_calc_get_bounding_box;
|
||||||
operation_class->no_cache = FALSE;
|
operation_class->no_cache = FALSE;
|
||||||
operation_class->get_cached_region = NULL;
|
operation_class->get_cached_region = NULL;
|
||||||
|
|
||||||
|
@ -151,6 +153,14 @@ gimp_operation_cage_coef_calc_set_property (GObject *object,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GeglRectangle
|
||||||
|
gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation)
|
||||||
|
{
|
||||||
|
GimpOperationCageCoefCalc *occc = GIMP_OPERATION_CAGE_COEF_CALC (operation);
|
||||||
|
GimpCageConfig *config = GIMP_CAGE_CONFIG (occc->config);
|
||||||
|
|
||||||
|
return gimp_cage_config_get_bounding_box (config);
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
gimp_operation_cage_coef_calc_process (GeglOperation *operation,
|
||||||
|
|
Loading…
Reference in New Issue