summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2001-07-04 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2001-07-04 00:00:00 +0200
commit8e7b17b0b24641743f62d3f5779e79c2c25b67e0 (patch)
treee04c7a2947e9538bc1b2c08d59d00a6694eaf5e3 /metapost
parentab399f7f60b937f771dd33f9b826d83dab3e84e2 (diff)
downloadcontext-8e7b17b0b24641743f62d3f5779e79c2c25b67e0.tar.gz
stable 2001.07.04
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/mp-core.mp10
1 files changed, 10 insertions, 0 deletions
diff --git a/metapost/context/mp-core.mp b/metapost/context/mp-core.mp
index 1951a6bef..63a49720a 100644
--- a/metapost/context/mp-core.mp
+++ b/metapost/context/mp-core.mp
@@ -47,6 +47,16 @@ def initialize_box (expr n,x,y,w,h,d) =
enddef ;
+def initialize_area (expr fn,fx,fy,fw,fh,fd,
+ tn,tx,ty,tw,th,td) =
+
+ numeric fpos ; fpos := 1 ; initialize_box_pos(fpos,fn,fx,fy,fw,fh,fd) ;
+ numeric tpos ; tpos := 2 ; initialize_box_pos(tpos,tn,tx,ty,tw,th,td) ;
+
+ do_initialize_area (fpos, tpos) ;
+
+enddef ;
+
def do_initialize_area (expr fpos, tpos) =
lxy := lxy[fpos] ;
llxy := (xpart llxy[fpos], ypart llxy[tpos]) ;