xref: /csrg-svn/lib/libplot/hp2648/line.c (revision 61393)
148517Sbostic /*-
2*61393Sbostic  * Copyright (c) 1980, 1993
3*61393Sbostic  *	The Regents of the University of California.  All rights reserved.
448517Sbostic  *
548517Sbostic  * %sccs.include.proprietary.c%
619975Sdist  */
719975Sdist 
815453Sralph #ifndef lint
9*61393Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048517Sbostic #endif /* not lint */
1115453Sralph 
1215453Sralph #include "hp2648.h"
1315453Sralph 
line(x0,y0,x1,y1)1415453Sralph line(x0,y0,x1,y1)
1515453Sralph int x0,y0,x1,y1;
1615453Sralph {
1715453Sralph 	if(xsc(x0)==currentx && ysc(y0)==currenty)
1815453Sralph 		cont(x1,y1);
1915453Sralph 	else if(xsc(x1)==currentx && ysc(y1)==currenty)
2015453Sralph 		cont(x0,y0);
2115453Sralph 	else{
2215453Sralph 		move(x0,y0);
2315453Sralph 		cont(x1,y1);
2415453Sralph 	}
2515453Sralph }
26