From: <ai...@us...> - 2011-03-03 19:44:28
|
Revision: 11590 http://plplot.svn.sourceforge.net/plplot/?rev=11590&view=rev Author: airwin Date: 2011-03-03 19:44:22 +0000 (Thu, 03 Mar 2011) Log Message: ----------- Make ps, psc, psttf, and psttfc devices honor the -eofill option. The results for example 27 are the same as for the xwin case. Modified Paths: -------------- trunk/drivers/ps.c trunk/drivers/psttf.cc Modified: trunk/drivers/ps.c =================================================================== --- trunk/drivers/ps.c 2011-03-03 00:53:48 UTC (rev 11589) +++ trunk/drivers/ps.c 2011-03-03 19:44:22 UTC (rev 11590) @@ -362,7 +362,10 @@ // Modify to use fill and stroke for better output with // anti-aliasing //fprintf(OF, "/F {fill} def\n"); - fprintf( OF, "/F {closepath gsave fill grestore stroke} def " ); + if ( pls->dev_eofill ) + fprintf( OF, "/F {closepath gsave eofill grestore stroke} def " ); + else + fprintf( OF, "/F {closepath gsave fill grestore stroke} def " ); fprintf( OF, "/N {newpath} def" ); fprintf( OF, "/C {setrgbcolor} def\n" ); fprintf( OF, "/G {setgray} def\n" ); Modified: trunk/drivers/psttf.cc =================================================================== --- trunk/drivers/psttf.cc 2011-03-03 00:53:48 UTC (rev 11589) +++ trunk/drivers/psttf.cc 2011-03-03 19:44:22 UTC (rev 11590) @@ -422,7 +422,10 @@ doc->osHeader() << "/A {0.5 0 360 arc} def\n"; doc->osHeader() << "/S {stroke} def\n"; doc->osHeader() << "/Z {stroke newpath} def\n"; - doc->osHeader() << "/F {closepath gsave fill grestore stroke} def\n"; + if ( pls->dev_eofill ) + doc->osHeader() << "/F {closepath gsave eofill grestore stroke} def\n"; + else + doc->osHeader() << "/F {closepath gsave fill grestore stroke} def\n"; doc->osHeader() << "/N {newpath} def\n"; doc->osHeader() << "/C {setrgbcolor} def\n"; doc->osHeader() << "/G {setgray} def\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |