1*19851Sdist /* 2*19851Sdist * Copyright (c) 1980 Regents of the University of California. 3*19851Sdist * All rights reserved. The Berkeley software License Agreement 4*19851Sdist * specifies the terms and conditions for redistribution. 5*19851Sdist */ 6*19851Sdist 715418Sralph #ifndef lint 8*19851Sdist static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 04/30/85"; 9*19851Sdist #endif not lint 1015418Sralph 11*19851Sdist 1215418Sralph #include "bg.h" 1315418Sralph 1415418Sralph line(x0,y0,x1,y1) 1515418Sralph int x0,y0,x1,y1; 1615418Sralph { 1715418Sralph if(scaleX(x0)==currentx && scaleY(y0)==currenty) 1815418Sralph cont(x1,y1); 1915418Sralph else if(scaleX(x1)==currentx && scaleY(y1)==currenty) 2015418Sralph cont(x0,y0); 2115418Sralph else{ 2215418Sralph move(x0,y0); 2315418Sralph cont(x1,y1); 2415418Sralph } 2515418Sralph } 26