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.
23 int gr_disk(fix xc1,fix yc1,fix r1)
25 int p,x, y, xc, yc, r;
35 if ( (xc+r) < 0 ) return 1;
36 if ( (xc-r) > GWIDTH ) return 1;
37 if ( (yc+r) < 0 ) return 1;
38 if ( (yc-r) > GHEIGHT ) return 1;
42 // Draw the first octant
43 gr_scanline( xc-y, xc+y, yc-x );
44 gr_scanline( xc-y, xc+y, yc+x );
49 // Draw the second octant
50 gr_scanline( xc-x, xc+x, yc-y );
51 gr_scanline( xc-x, xc+x, yc+y );
58 gr_scanline( xc-x, xc+x, yc-y );
59 gr_scanline( xc-x, xc+x, yc+y );
64 int gr_udisk(fix xc1,fix yc1,fix r1)
66 int p,x, y, xc, yc, r;
77 // Draw the first octant
78 gr_uscanline( xc-y, xc+y, yc-x );
79 gr_uscanline( xc-y, xc+y, yc+x );
84 // Draw the second octant
85 gr_uscanline( xc-x, xc+x, yc-y );
86 gr_uscanline( xc-x, xc+x, yc+y );
93 gr_uscanline( xc-x, xc+x, yc-y );
94 gr_uscanline( xc-x, xc+x, yc+y );