1f59b8431Sbostic /*-
2*c6f2c718Sbostic * Copyright (c) 1980, 1993
3*c6f2c718Sbostic * The Regents of the University of California. All rights reserved.
4f59b8431Sbostic *
5f59b8431Sbostic * %sccs.include.proprietary.c%
6ba410b69Sdist */
7ba410b69Sdist
8be9b7114Sralph #ifndef lint
9*c6f2c718Sbostic static char sccsid[] = "@(#)line.c 8.1 (Berkeley) 06/04/93";
10f59b8431Sbostic #endif /* not lint */
11be9b7114Sralph
12be9b7114Sralph #include "gigi.h"
13be9b7114Sralph
line(x0,y0,x1,y1)14be9b7114Sralph line(x0,y0,x1,y1)
15be9b7114Sralph int x0,y0,x1,y1;
16be9b7114Sralph {
17be9b7114Sralph if(xsc(x0)==currentx && ysc(y0)==currenty)
18be9b7114Sralph cont(x1,y1);
19be9b7114Sralph else if(xsc(x1)==currentx && ysc(y1)==currenty)
20be9b7114Sralph cont(x0,y0);
21be9b7114Sralph else{
22be9b7114Sralph move(x0,y0);
23be9b7114Sralph cont(x1,y1);
24be9b7114Sralph }
25be9b7114Sralph }
26