xref: /csrg-svn/lib/libplot/vt0/line.c (revision 61414)
148526Sbostic /*-
2*61414Sbostic  * Copyright (c) 1983, 1993
3*61414Sbostic  *	The Regents of the University of California.  All rights reserved.
448526Sbostic  *
548526Sbostic  * %sccs.include.proprietary.c%
648526Sbostic  */
748526Sbostic 
813385Ssam #ifndef lint
9*61414Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048526Sbostic #endif /* not lint */
1113385Ssam 
1213385Ssam extern vti;
1313385Ssam extern xnow,ynow;
line(x0,y0,x1,y1)1413385Ssam line(x0,y0,x1,y1){
1513385Ssam 	struct{char x,c; int x0,y0,x1,y1;} p;
1613385Ssam 	p.c = 3;
1713385Ssam 	p.x0 = xsc(x0);
1813385Ssam 	p.y0 = ysc(y0);
1913385Ssam 	p.x1 = xnow = xsc(x1);
2013385Ssam 	p.y1 = ynow = ysc(y1);
2113385Ssam 	write(vti,&p.c,9);
2213385Ssam }
cont(x0,y0)2313385Ssam cont(x0,y0){
2413385Ssam 	line(xnow,ynow,xsc(x0),ysc(y0));
2513385Ssam 	return;
2613385Ssam }
27