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