1 /**
2  ** pattline.c
3  **
4  ** Copyright (C) 1997, Michael Goffioul
5  ** [e-mail : goffioul@emic.ucl.ac.be]
6  **
7  ** Copyright (c) 1995 Csaba Biegl, 820 Stirrup Dr, Nashville, TN 37221
8  ** [e-mail: csaba@vuse.vanderbilt.edu]
9  **
10  **  Copyright (C) 1992, Csaba Biegl
11  **    820 Stirrup Dr, Nashville, TN, 37221
12  **    csaba@vuse.vanderbilt.edu
13  **
14  ** This file is part of the GRX graphics library.
15  **
16  ** The GRX graphics library is free software; you can redistribute it
17  ** and/or modify it under some conditions; see the "copying.grx" file
18  ** for details.
19  **
20  ** This library is distributed in the hope that it will be useful,
21  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
22  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23  **
24  **/
25 
26 #include "libgrx.h"
27 #include "shapes.h"
28 
GrPatternedLine(int x1,int y1,int x2,int y2,GrLinePattern * lp)29 void GrPatternedLine(int x1,int y1,int x2,int y2,GrLinePattern *lp)
30 {
31 	GrFillArg fval;
32 	int points[2][2];
33 
34 	points[0][0] = x1;
35 	points[0][1] = y1;
36 	points[1][0] = x2;
37 	points[1][1] = y2;
38 	fval.p = lp->lnp_pattern;
39 	_GrDrawCustomPolygon(2,points,lp->lnp_option,&_GrPatternFiller,fval,FALSE,FALSE);
40 }
41