1*48518Sbostic /*- 2*48518Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48518Sbostic * All rights reserved. 4*48518Sbostic * 5*48518Sbostic * %sccs.include.proprietary.c% 619978Sdist */ 719978Sdist 815472Sralph #ifndef lint 9*48518Sbostic static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 04/22/91"; 10*48518Sbostic #endif /* not lint */ 1115472Sralph 1215472Sralph #include "hp7221.h" 1315472Sralph 1415472Sralph line(x0,y0,x1,y1) 1515472Sralph int x0,y0,x1,y1; 1615472Sralph { 1715472Sralph if(scaleX(x0)==currentx && scaleY(y0)==currenty) 1815472Sralph cont(x1,y1); 1915472Sralph else if(scaleX(x1)==currentx && scaleY(y1)==currenty) 2015472Sralph cont(x0,y0); 2115472Sralph else{ 2215472Sralph move(x0,y0); 2315472Sralph cont(x1,y1); 2415472Sralph } 2515472Sralph } 26