date and time created 85/01/02 20:29:49 by jak
[unix-history] / usr / src / lib / libplot / bitgraph / line.c
CommitLineData
55248541
RC
1#ifndef lint
2static char sccsid[] = "@(#)line.c 4.1 (Berkeley) %G%";
3#endif
4
5#include "bg.h"
6
7line(x0,y0,x1,y1)
8int x0,y0,x1,y1;
9{
10 if(scaleX(x0)==currentx && scaleY(y0)==currenty)
11 cont(x1,y1);
12 else if(scaleX(x1)==currentx && scaleY(y1)==currenty)
13 cont(x0,y0);
14 else{
15 move(x0,y0);
16 cont(x1,y1);
17 }
18}