libgimp: use the right layer mode in gimp_layer_new_from_surface()

gimp_image_get_default_new_layer_mode() instead of
GIMP_LAYER_MODE_NORMAL_LEGACY.
This commit is contained in:
Michael Natterer 2018-04-24 13:55:50 +02:00
parent 709f248438
commit 00f3c4e47b
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ 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,
100.0, GIMP_LAYER_MODE_NORMAL_LEGACY);
100.0,
gimp_image_get_default_new_layer_mode (image_ID));
if (layer == -1)
return -1;