1*48504Sbostic /*- 2*48504Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48504Sbostic * All rights reserved. 4*48504Sbostic * 5*48504Sbostic * %sccs.include.proprietary.c% 619851Sdist */ 719851Sdist 815418Sralph #ifndef lint 9*48504Sbostic static char sccsid[] = "@(#)line.c 5.3 (Berkeley) 04/22/91"; 10*48504Sbostic #endif /* not lint */ 1115418Sralph 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