[gimp] app: use NON_LINEAR not PERCEPTUAL in file-pat-load and file-gbr-load



commit 569f3e1bc2fc6932b7a56384f67f40ff48162b6b
Author: Michael Natterer <mitch gimp org>
Date:   Tue Feb 19 23:43:58 2019 +0100

    app: use NON_LINEAR not PERCEPTUAL in file-pat-load and file-gbr-load

 app/file-data/file-data-gbr.c | 2 +-
 app/file-data/file-data-pat.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/file-data/file-data-gbr.c b/app/file-data/file-data-gbr.c
index 03aaea5787..aa48bccdf8 100644
--- a/app/file-data/file-data-gbr.c
+++ b/app/file-data/file-data-gbr.c
@@ -281,7 +281,7 @@ file_gbr_brush_to_image (Gimp      *gimp,
   height = gimp_temp_buf_get_height (mask);
 
   image = gimp_image_new (gimp, width, height, base_type,
-                          GIMP_PRECISION_U8_PERCEPTUAL);
+                          GIMP_PRECISION_U8_NON_LINEAR);
 
   parasite = gimp_parasite_new ("gimp-brush-name",
                                 GIMP_PARASITE_PERSISTENT,
diff --git a/app/file-data/file-data-pat.c b/app/file-data/file-data-pat.c
index 9619d14041..777bf63afe 100644
--- a/app/file-data/file-data-pat.c
+++ b/app/file-data/file-data-pat.c
@@ -206,7 +206,7 @@ file_pat_pattern_to_image (Gimp        *gimp,
   height = gimp_temp_buf_get_height (mask);
 
   image = gimp_image_new (gimp, width, height, base_type,
-                          GIMP_PRECISION_U8_PERCEPTUAL);
+                          GIMP_PRECISION_U8_NON_LINEAR);
 
   parasite = gimp_parasite_new ("gimp-pattern-name",
                                 GIMP_PARASITE_PERSISTENT,
@@ -241,7 +241,7 @@ file_pat_image_to_pattern (GimpImage    *image,
 
   format = gimp_babl_format (gimp_drawable_is_gray (drawable) ?
                              GIMP_GRAY : GIMP_RGB,
-                             GIMP_PRECISION_U8_PERCEPTUAL,
+                             GIMP_PRECISION_U8_NON_LINEAR,
                              gimp_drawable_has_alpha (drawable),
                              NULL);
 


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