xref: /csrg-svn/lib/libplot/hp7221/line.c (revision 61395)
148518Sbostic /*-
2*61395Sbostic  * Copyright (c) 1980, 1993
3*61395Sbostic  *	The Regents of the University of California.  All rights reserved.
448518Sbostic  *
548518Sbostic  * %sccs.include.proprietary.c%
619978Sdist  */
719978Sdist 
815472Sralph #ifndef lint
9*61395Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048518Sbostic #endif /* not lint */
1115472Sralph 
1215472Sralph #include "hp7221.h"
1315472Sralph 
line(x0,y0,x1,y1)1415472Sralph line(x0,y0,x1,y1)
1515472Sralph int x0,y0,x1,y1;
1615472Sralph {
1715472Sralph 	if(scaleX(x0)==currentx && scaleY(y0)==currenty)
1815472Sralph 		cont(x1,y1);
1915472Sralph 	else if(scaleX(x1)==currentx && scaleY(y1)==currenty)
2015472Sralph 		cont(x0,y0);
2115472Sralph 	else{
2215472Sralph 		move(x0,y0);
2315472Sralph 		cont(x1,y1);
2415472Sralph 	}
2515472Sralph }
26