[gimp] app: opaque in gimp_layer_new() is 1.0 not 255



commit ac5f44eb7451da807e371fbe18ce91ca5834229d
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jul 16 14:47:10 2018 +0200

    app: opaque in gimp_layer_new() is 1.0 not 255
    
    The value is later CLAMP()ed correctly, but fix the call in xcf-load.c
    anyway.

 app/xcf/xcf-load.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index f0883a325e..4f622e74e2 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -1712,7 +1712,8 @@ xcf_load_layer (XcfInfo    *info,
 
   /* create a new layer */
   layer = gimp_layer_new (image, width, height,
-                          format, name, 255, GIMP_LAYER_MODE_NORMAL);
+                          format, name,
+                          GIMP_OPACITY_OPAQUE, GIMP_LAYER_MODE_NORMAL);
   g_free (name);
   if (! layer)
     return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]