[gs-commits] rev 10919 - branches/icc_work/base
mvrhel at ghostscript.com
mvrhel at ghostscript.com
Fri Mar 12 05:28:26 UTC 2010
Author: mvrhel
Date: 2010-03-12 05:28:25 +0000 (Fri, 12 Mar 2010)
New Revision: 10919
Modified:
branches/icc_work/base/gsicc_create.c
Log:
Fix for wrong order in creation of clut during sampling. We now get reasonable results with the PS color spaces.
Modified: branches/icc_work/base/gsicc_create.c
===================================================================
--- branches/icc_work/base/gsicc_create.c 2010-03-12 03:07:49 UTC (rev 10918)
+++ branches/icc_work/base/gsicc_create.c 2010-03-12 05:28:25 UTC (rev 10919)
@@ -387,9 +387,20 @@
gx_psconcretize_CIEABC(&cc, pcs, xyz, pis);
break;
case gs_color_space_index_CIEDEF:
+ /* This needs to be done differently so we are not swapping */
+ temp = cc.paint.values[2];
+ cc.paint.values[2] = cc.paint.values[0];
+ cc.paint.values[0] = temp;
gx_psconcretize_CIEDEF(&cc, pcs, xyz, pis);
break;
case gs_color_space_index_CIEDEFG:
+ /* This needs to be done differently so we are not swapping */
+ temp = cc.paint.values[3];
+ cc.paint.values[3] = cc.paint.values[0];
+ cc.paint.values[0] = temp;
+ temp = cc.paint.values[1];
+ cc.paint.values[1] = cc.paint.values[2];
+ cc.paint.values[2] = temp;
gx_psconcretize_CIEDEFG(&cc, pcs, xyz, pis);
break;
default:
More information about the gs-commits
mailing list