2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
22 int gr_disk(fix xc1,fix yc1,fix r1)
24 int p,x, y, xc, yc, r;
34 if ( (xc+r) < 0 ) return 1;
35 if ( (xc-r) > GWIDTH ) return 1;
36 if ( (yc+r) < 0 ) return 1;
37 if ( (yc-r) > GHEIGHT ) return 1;
41 // Draw the first octant
42 gr_scanline( xc-y, xc+y, yc-x );
43 gr_scanline( xc-y, xc+y, yc+x );
48 // Draw the second octant
49 gr_scanline( xc-x, xc+x, yc-y );
50 gr_scanline( xc-x, xc+x, yc+y );
57 gr_scanline( xc-x, xc+x, yc-y );
58 gr_scanline( xc-x, xc+x, yc+y );
63 int gr_udisk(fix xc1,fix yc1,fix r1)
65 int p,x, y, xc, yc, r;
76 // Draw the first octant
77 gr_uscanline( xc-y, xc+y, yc-x );
78 gr_uscanline( xc-y, xc+y, yc+x );
83 // Draw the second octant
84 gr_uscanline( xc-x, xc+x, yc-y );
85 gr_uscanline( xc-x, xc+x, yc+y );
92 gr_uscanline( xc-x, xc+x, yc-y );
93 gr_uscanline( xc-x, xc+x, yc+y );