1*48517Sbostic /*- 2*48517Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48517Sbostic * All rights reserved. 4*48517Sbostic * 5*48517Sbostic * %sccs.include.proprietary.c% 619975Sdist */ 719975Sdist 815453Sralph #ifndef lint 9*48517Sbostic static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 04/22/91"; 10*48517Sbostic #endif /* not lint */ 1115453Sralph 1215453Sralph #include "hp2648.h" 1315453Sralph 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