1 /**
2  ** upcirc.c
3  **
4  ** Copyright (C) 1997, Michael Goffioul
5  ** [goffioul@emic.ucl.ac.be]
6  **
7  ** This file is part of the GRX graphics library.
8  **
9  ** The GRX graphics library is free software; you can redistribute it
10  ** and/or modify it under some conditions; see the "copying.grx" file
11  ** for details.
12  **
13  ** This library is distributed in the hope that it will be useful,
14  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  **
17  ** Note : compiling the library with -DUSR_KEEP_SHAPE makes a circle
18  **        looks like a circle on the screen
19  **
20  **/
21 
22 #include "libgrx.h"
23 #include "usercord.h"
24 
GrUsrPatternedCircle(int xc,int yc,int r,GrLinePattern * lp)25 void GrUsrPatternedCircle(int xc,int yc,int r,GrLinePattern *lp)
26 {
27 #ifdef USR_KEEP_SHAPE
28 	U2SX(xc,CURC);
29 	U2SY(yc,CURC);
30 	SCALE(r,r,CURC->gc_xmax,CURC->gc_usrwidth);
31 	GrPatternedCircle(xc,yc,r,lp);
32 #else
33 	GrUsrPatternedEllipse(xc,yc,r,r,lp);
34 #endif /* USR_KEEP_SHAPE */
35 }
36