summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/psfile.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-18 21:58:51 +0000
committerKarl Berry <karl@freefriends.org>2013-05-18 21:58:51 +0000
commit1b4cb2401e932a47c4e736a0197d22c7797b58ad (patch)
tree8e478eee9868a06467931e053ec06658ae3a8e06 /Build/source/utils/asymptote/psfile.cc
parent93dcab8a877f998aafe2bef5e59b7c6ea2f7f434 (diff)
asy 2.22 sources
git-svn-id: svn://tug.org/texlive/trunk@30552 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/psfile.cc')
-rw-r--r--Build/source/utils/asymptote/psfile.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/psfile.cc b/Build/source/utils/asymptote/psfile.cc
index 3886db6d46f..faf6a2c810a 100644
--- a/Build/source/utils/asymptote/psfile.cc
+++ b/Build/source/utils/asymptote/psfile.cc
@@ -47,6 +47,7 @@ psfile::psfile(const string& filename, bool pdfformat)
{
if(filename.empty()) out=&cout;
else out=new ofstream(filename.c_str());
+ out->setf(std::ios::boolalpha);
if(!out || !*out)
reportError("Cannot write to "+filename);
}
@@ -348,7 +349,8 @@ void psfile::latticeshade(const vm::array& a, const transform& t)
// Axial and radial shading
void psfile::gradientshade(bool axial, ColorSpace colorspace,
const pen& pena, const pair& a, double ra,
- const pen& penb, const pair& b, double rb)
+ bool extenda, const pen& penb, const pair& b,
+ double rb, bool extendb)
{
checkLevel();
endclip(pena);
@@ -364,7 +366,7 @@ void psfile::gradientshade(bool axial, ColorSpace colorspace,
write(b);
if(!axial) write(rb);
*out << "]" << newl
- << "/Extend [true true]" << newl
+ << "/Extend [" << extenda << " " << extendb << "]" << newl
<< "/Function" << newl
<< "<< /FunctionType 2" << newl
<< "/Domain [0 1]" << newl