xref: /csrg-svn/lib/libplot/gigi/line.c (revision 61388)
148508Sbostic /*-
2*61388Sbostic  * Copyright (c) 1980, 1993
3*61388Sbostic  *	The Regents of the University of California.  All rights reserved.
448508Sbostic  *
548508Sbostic  * %sccs.include.proprietary.c%
619974Sdist  */
719974Sdist 
815491Sralph #ifndef lint
9*61388Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048508Sbostic #endif /* not lint */
1115491Sralph 
1215491Sralph #include "gigi.h"
1315491Sralph 
line(x0,y0,x1,y1)1415491Sralph line(x0,y0,x1,y1)
1515491Sralph int x0,y0,x1,y1;
1615491Sralph {
1715491Sralph 	if(xsc(x0)==currentx && ysc(y0)==currenty)
1815491Sralph 		cont(x1,y1);
1915491Sralph 	else if(xsc(x1)==currentx && ysc(y1)==currenty)
2015491Sralph 		cont(x0,y0);
2115491Sralph 	else{
2215491Sralph 		move(x0,y0);
2315491Sralph 		cont(x1,y1);
2415491Sralph 	}
2515491Sralph }
26