Commit | Line | Data |
---|---|---|
1 | #ifndef lint | |
2 | static char sccsid[] = "@(#)line.c 4.1 (Berkeley) %G%"; | |
3 | #endif | |
4 | ||
5 | #include "gigi.h" | |
6 | ||
7 | line(x0,y0,x1,y1) | |
8 | int x0,y0,x1,y1; | |
9 | { | |
10 | if(xsc(x0)==currentx && ysc(y0)==currenty) | |
11 | cont(x1,y1); | |
12 | else if(xsc(x1)==currentx && ysc(y1)==currenty) | |
13 | cont(x0,y0); | |
14 | else{ | |
15 | move(x0,y0); | |
16 | cont(x1,y1); | |
17 | } | |
18 | } |