summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/patterns.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/patterns.asy')
-rw-r--r--Master/texmf-dist/asymptote/patterns.asy3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf-dist/asymptote/patterns.asy b/Master/texmf-dist/asymptote/patterns.asy
index 559e36cec11..de0fc02d039 100644
--- a/Master/texmf-dist/asymptote/patterns.asy
+++ b/Master/texmf-dist/asymptote/patterns.asy
@@ -13,7 +13,9 @@ frame tiling(string name, picture pic, pair lb=0, pair rt=0)
/XStep "+format(s,pmax.x-pmin.x,"C")+"
/YStep "+format(s,pmax.y-pmin.y,"C")+"
/PaintProc {pop");
+ gsave(tiling);
add(tiling,f);
+ grestore(tiling);
postscript(tiling,"} >>
matrix makepattern
/"+name+" exch def");
@@ -99,4 +101,3 @@ picture crosshatch(real H=5mm, pen p=currentpen)
add(tiling,shift(H*sqrt(2))*rotate(90)*hatch(H,p));
return tiling;
}
-