diff --git a/libgimp/gimplayer.c b/libgimp/gimplayer.c index 7b5f40c0b8..3a33500c07 100644 --- a/libgimp/gimplayer.c +++ b/libgimp/gimplayer.c @@ -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; diff --git a/libgimp/gimplayer.h b/libgimp/gimplayer.h index 22d4ad3892..b51ebd7528 100644 --- a/libgimp/gimplayer.h +++ b/libgimp/gimplayer.h @@ -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); diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c index 75f0d6d718..5a29a82881 100644 --- a/plug-ins/common/file-pdf-load.c +++ b/plug-ins/common/file-pdf-load.c @@ -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);