1 #ifndef lint 2 static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 11/10/83"; 3 #endif 4 5 #include "bg.h" 6 7 line(x0,y0,x1,y1) 8 int x0,y0,x1,y1; 9 { 10 if(scaleX(x0)==currentx && scaleY(y0)==currenty) 11 cont(x1,y1); 12 else if(scaleX(x1)==currentx && scaleY(y1)==currenty) 13 cont(x0,y0); 14 else{ 15 move(x0,y0); 16 cont(x1,y1); 17 } 18 } 19