1*19975Sdist /* 2*19975Sdist * Copyright (c) 1980 Regents of the University of California. 3*19975Sdist * All rights reserved. The Berkeley software License Agreement 4*19975Sdist * specifies the terms and conditions for redistribution. 5*19975Sdist */ 6*19975Sdist 715453Sralph #ifndef lint 8*19975Sdist static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 05/07/85"; 9*19975Sdist #endif not lint 1015453Sralph 1115453Sralph #include "hp2648.h" 1215453Sralph 1315453Sralph line(x0,y0,x1,y1) 1415453Sralph int x0,y0,x1,y1; 1515453Sralph { 1615453Sralph if(xsc(x0)==currentx && ysc(y0)==currenty) 1715453Sralph cont(x1,y1); 1815453Sralph else if(xsc(x1)==currentx && ysc(y1)==currenty) 1915453Sralph cont(x0,y0); 2015453Sralph else{ 2115453Sralph move(x0,y0); 2215453Sralph cont(x1,y1); 2315453Sralph } 2415453Sralph } 25