summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawfill.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-08 00:57:31 +0000
committerKarl Berry <karl@freefriends.org>2009-06-08 00:57:31 +0000
commit9e32dd6aee7faf4e59888cfbd7a927d497b563ad (patch)
tree5068ec13390f4352be663383dd58e22147e68201 /Build/source/utils/asymptote/drawfill.cc
parent3f49bad6cd5234b4e0ea156f6f68f6430643c10f (diff)
asymptote 1.76
git-svn-id: svn://tug.org/texlive/trunk@13664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawfill.cc')
-rw-r--r--Build/source/utils/asymptote/drawfill.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/drawfill.cc b/Build/source/utils/asymptote/drawfill.cc
index af32b95e475..4ebe07b4eb2 100644
--- a/Build/source/utils/asymptote/drawfill.cc
+++ b/Build/source/utils/asymptote/drawfill.cc
@@ -110,9 +110,6 @@ bool drawFunctionShade::write(texfile *out, const bbox& box)
{
if(empty()) return true;
- const char *units=
- settings::texunits(settings::getSetting<string>("tex"));
-
ColorSpace colorspace=pentype.colorspace();
size_t ncomponents=ColorComponents[colorspace];
@@ -130,12 +127,10 @@ bool drawFunctionShade::write(texfile *out, const bbox& box)
double Hoffset=out->hoffset();
double hoffset=(bpath.Max().getx()-Hoffset)*ps2tex;
out->write(hoffset);
- out->verbatim(units);
- out->verbatim(" {");
+ out->verbatim("pt {");
out->verbatim("\\vbox to ");
out->write((box.top-box.bottom)*ps2tex);
- out->verbatim(units);
- out->verbatimline(" {\\vfil%");
+ out->verbatimline("pt {\\vfil%");
out->gsave();
out->beginspecial();
out->beginraw();
@@ -161,8 +156,7 @@ bool drawFunctionShade::write(texfile *out, const bbox& box)
out->verbatimline("\\pdfrefxform\\the\\pdflastxform");
out->verbatim("\\kern");
out->write(-hoffset);
- out->verbatim(units);
- out->verbatimline("%");
+ out->verbatimline("pt%");
return true;
}