babl: fix naive CMYK reference to do 100% pullout
authorØyvind Kolås <pippin@gimp.org>
Sun, 3 May 2020 10:12:52 +0000 (12:12 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sun, 3 May 2020 10:12:52 +0000 (12:12 +0200)
babl/babl-fish-reference.c

index 4c2e3150d7b7abcf2413c0a8d7bee14de48c39f8..f641a21506c6fd2e7922077619fc560d3d09db1c 100644 (file)
@@ -918,7 +918,7 @@ babl_fish_reference_process_double (const Babl *babl,
       for (i = 0; i < n; i++)
       {
         /* A very naive conversion - but it is usable */
-        double key=0.0;
+        double key=1.0;
         cmyka[i * 5 + 0] = 1.0 - rgba[i * 4 + 0];
         cmyka[i * 5 + 1] = 1.0 - rgba[i * 4 + 1];
         cmyka[i * 5 + 2] = 1.0 - rgba[i * 4 + 2];