xref: /csrg-svn/lib/libplot/dumb/line.c (revision 61356)
148505Sbostic /*-
2*61356Sbostic  * Copyright (c) 1980, 1993
3*61356Sbostic  *	The Regents of the University of California.  All rights reserved.
448505Sbostic  *
548505Sbostic  * %sccs.include.proprietary.c%
619971Sdist  */
719971Sdist 
815436Sralph #ifndef lint
9*61356Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048505Sbostic #endif /* not lint */
1115436Sralph 
1215436Sralph #include "dumb.h"
1315436Sralph 
line(x0,y0,x1,y1)1415436Sralph line(x0, y0, x1, y1)
1515436Sralph 	int x0, y0, x1, y1;
1615436Sralph {
1715436Sralph 	int x,y;
1815436Sralph 
1915436Sralph 	scale(x0, y0);
2015436Sralph 	x = x1;
2115436Sralph 	y = y1;
2215436Sralph 	scale(x, y);
2315436Sralph 	currentx = x0;
2415436Sralph 	currenty = y0;
2515436Sralph 	screenmat[currentx][currenty] = '*';
2615436Sralph 	dda_line('*', x0, y0, x1, y1);
2715436Sralph }
28