Commit 00f3c4e4 authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent 709f2484
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment