libgimp: remove opacity and mode parameters from gimp_layer_new_from_surface()
They are passed as default values in almost all cases, and can simply be set later if needed.
This commit is contained in:
parent
4988a97257
commit
1616151b0e
3 changed files with 1 additions and 8 deletions
|
|
@ -206,8 +206,6 @@ gimp_layer_new_from_pixbuf (gint32 image_ID,
|
|||
* @image_ID: The RGB image to which to add the layer.
|
||||
* @name: The layer name.
|
||||
* @cairo_surface_t: A Cairo image surface.
|
||||
* @opacity: The layer opacity.
|
||||
* @mode: The layer combination mode.
|
||||
* @progress_start: start of progress
|
||||
* @progress_end: end of progress
|
||||
*
|
||||
|
|
@ -229,8 +227,6 @@ gint32
|
|||
gimp_layer_new_from_surface (gint32 image_ID,
|
||||
const gchar *name,
|
||||
cairo_surface_t *surface,
|
||||
gdouble opacity,
|
||||
GimpLayerModeEffects mode,
|
||||
gdouble progress_start,
|
||||
gdouble progress_end)
|
||||
{
|
||||
|
|
@ -271,7 +267,7 @@ gimp_layer_new_from_surface (gint32 image_ID,
|
|||
layer = gimp_layer_new (image_ID, name, width, height,
|
||||
format == CAIRO_FORMAT_RGB24 ?
|
||||
GIMP_RGB_IMAGE : GIMP_RGBA_IMAGE,
|
||||
opacity, mode);
|
||||
100.0, GIMP_NORMAL_MODE);
|
||||
|
||||
if (layer == -1)
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ gint32 gimp_layer_new_from_pixbuf (gint32 image_ID,
|
|||
gint32 gimp_layer_new_from_surface (gint32 image_ID,
|
||||
const gchar *name,
|
||||
cairo_surface_t *surface,
|
||||
gdouble opacity,
|
||||
GimpLayerModeEffects mode,
|
||||
gdouble progress_start,
|
||||
gdouble progress_end);
|
||||
|
||||
|
|
|
|||
|
|
@ -761,7 +761,6 @@ layer_from_surface (gint32 image,
|
|||
gdouble progress_scale)
|
||||
{
|
||||
gint32 layer = gimp_layer_new_from_surface (image, layer_name, surface,
|
||||
100.0, GIMP_NORMAL_MODE,
|
||||
progress_start,
|
||||
progress_start + progress_scale);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue