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

leonardo at ghostscript.com leonardo at ghostscript.com
Fri Jul 13 09:29:03 PDT 2007


Author: leonardo
Date: 2007-07-13 09:29:03 -0700 (Fri, 13 Jul 2007)
New Revision: 8122

Modified:
   trunk/gs/src/gxfill.c
Log:
Banding : Extend clist language with trapezoids, linear color trapezoids and linear color triangles (continued 2).

DETAILS :

This fixes Comment #4 of Bug 689344 "Regression: cmyk output broken with banding".

The revision 8020 of gxfill.h doesn't account a case of pcpath==NULL
in gx_default_fill_path.
However the clist reader does such calls with halftoned colors.

EXPECTED DIFFERENCES :

Fixes resent regressions (a halftone color dissipation) with pkmraw -r300 -K1000000 -dMaxBitmap=10000 :

"159.pdf" 
"1_pct_50_bang.pdf" 
"289-01.ps" 
"86554321.pdf" 
"a.pdf" 
"adesso3.pdf" 
"adesso7.pdf" 
"adesso8.pdf" 
"Altona-Testsuite_p2_S_x3.pdf" 
"Altona.Page_3.2002-09-27.pdf" 
"Altona_Technical_1v1_x3.pdf" 
"BEST8-99-Path.fh7.pdf" 
"besttest.pdf" 
"budget2.pdf" 
"budget2_ai87.pdf" 
"Bug687207.ps" 
"Bug687396.ps" 
"Bug687598.ps" 
"Bug687603.ps" 
"Bug687698.ps" 
"Bug687724.pdf" 
"Bug687812.ps" 
"Bug687828.pdf" 
"Bug687840.pdf" 
"Bug687901.ps" 
"Bug688000.ps" 
"Bug688308.ps" 
"Bug688789.pdf" 
"Bug688822.eps" 
"Bug689189.pdf" 
"bugsample.pdf" 
"bug_687457.pdf" 
"bulletin.pdf" 
"CAIB_highres_page4.pdf" 
"CAT_LOGO.ps" 
"ccc.pdf" 
"Clarke Tate Manns Chinese.ai" 
"cmyk.pdf" 
"dave.pdf" 
"doretree.ps" 
"escher.ps" 
"file2.pdf" 
"gs.anotherfailure.pdf" 
"gs5.98-dragon.pdf" 
"gs6.0-dragon.pdf" 
"gslandscape.pdf" 
"InstandardBuildChar.ps" 
"japan.ps" 
"knight.pdf" 
"korea.ps" 
"landscape.ps" 
"LMG-40-7161-RU-DUC-01.pdf" 
"loremIpsum.pdf" 
"messenger.pdf" 
"messenger16.pdf" 
"motor.pdf" 
"ngnews.pdf" 
"ngnews1.pdf" 
"Page01.pdf" 
"QA_Inv.pdf" 
"QuickNews_Nov22.pdf" 
"RealCities.pdf" 
"rf1025.pdf" 
"S2_Digitalproof-Forum_circles.pdf" 
"S2_Digitalproof-Forum_x3k.pdf" 
"si_tg_brochure.pdf" 
"sports.pdf" 
"test.pdf" 
"tiger.eps" 
"unihaken-color.pdf" 
"vsem0093.pdf" 
"xngnews.pdf" 


Modified: trunk/gs/src/gxfill.c
===================================================================
--- trunk/gs/src/gxfill.c	2007-07-13 12:07:29 UTC (rev 8121)
+++ trunk/gs/src/gxfill.c	2007-07-13 16:29:03 UTC (rev 8122)
@@ -608,7 +608,14 @@
 	    code = gx_cpath_init_local_shared(&cpath_intersection, pcpath, pdev->memory);
 	    if (code < 0)
 		return code;
-	    code = gx_cpath_intersect_with_params(&cpath_intersection, ppath, params->rule, 
+	    if (pcpath == NULL) {
+		gs_fixed_rect clip_box1;
+
+		(*dev_proc(pdev, get_clipping_box)) (pdev, &clip_box1);
+		code = gx_cpath_from_rectangle(&cpath_intersection, &clip_box1);
+	    }
+	    if (code >= 0)
+		code = gx_cpath_intersect_with_params(&cpath_intersection, ppath, params->rule, 
 			pis_noconst, params);
 	    pcpath1 = &cpath_intersection;
 	} else



More information about the gs-cvs mailing list