[gs-cvs] rev 7114 - trunk/gs/src

raph at ghostscript.com raph at ghostscript.com
Thu Oct 19 18:12:42 PDT 2006


Author: raph
Date: 2006-10-19 18:12:42 -0700 (Thu, 19 Oct 2006)
New Revision: 7114

Modified:
   trunk/gs/src/gxfill.c
Log:
FIX: Fixes CET 18-02A p4 and others. Optimization for filling shadings
by installing a clipper device with the path, and rendering complex 
color through it, does not produce correct results when fill rule is
eofill. This patch simply disables the optimization in the case of
eofill. We should probably look at why the optimized code produces
incorrect results, as that may affect correctness of eoclip, not to
mention the performance issues.


Modified: trunk/gs/src/gxfill.c
===================================================================
--- trunk/gs/src/gxfill.c	2006-10-18 13:32:51 UTC (rev 7113)
+++ trunk/gs/src/gxfill.c	2006-10-20 01:12:42 UTC (rev 7114)
@@ -553,7 +553,8 @@
 {
     int code;
 
-    if (gx_dc_is_pattern2_color(pdevc) || pdevc->type == &gx_dc_type_data_ht_colored) {
+    if ((gx_dc_is_pattern2_color(pdevc) || pdevc->type == &gx_dc_type_data_ht_colored) &&
+	params->rule == -1) {
 	/*  Optimization for shading and halftone fill :
 	    The general filling algorithm subdivides the fill region into 
 	    trapezoid or rectangle subregions and then paints each subregion 



More information about the gs-cvs mailing list