15d4f9b1fSbostic /*-
2*201bf0aeSbostic * Copyright (c) 1980, 1993
3*201bf0aeSbostic * The Regents of the University of California. All rights reserved.
45d4f9b1fSbostic *
55d4f9b1fSbostic * %sccs.include.proprietary.c%
64054f1beSdist */
74054f1beSdist
8c7a64edaSralph #ifndef lint
9*201bf0aeSbostic static char sccsid[] = "@(#)line.c 8.1 (Berkeley) 06/04/93";
105d4f9b1fSbostic #endif /* not lint */
11c7a64edaSralph
12c7a64edaSralph #include "hp2648.h"
13c7a64edaSralph
line(x0,y0,x1,y1)14c7a64edaSralph line(x0,y0,x1,y1)
15c7a64edaSralph int x0,y0,x1,y1;
16c7a64edaSralph {
17c7a64edaSralph if(xsc(x0)==currentx && ysc(y0)==currenty)
18c7a64edaSralph cont(x1,y1);
19c7a64edaSralph else if(xsc(x1)==currentx && ysc(y1)==currenty)
20c7a64edaSralph cont(x0,y0);
21c7a64edaSralph else{
22c7a64edaSralph move(x0,y0);
23c7a64edaSralph cont(x1,y1);
24c7a64edaSralph }
25c7a64edaSralph }
26