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.
20 int gr_disk(fix xc1,fix yc1,fix r1)
22 int p,x, y, xc, yc, r;
32 if ( (xc+r) < 0 ) return 1;
33 if ( (xc-r) > GWIDTH ) return 1;
34 if ( (yc+r) < 0 ) return 1;
35 if ( (yc-r) > GHEIGHT ) return 1;
39 // Draw the first octant
40 gr_scanline( xc-y, xc+y, yc-x );
41 gr_scanline( xc-y, xc+y, yc+x );
46 // Draw the second octant
47 gr_scanline( xc-x, xc+x, yc-y );
48 gr_scanline( xc-x, xc+x, yc+y );
55 gr_scanline( xc-x, xc+x, yc-y );
56 gr_scanline( xc-x, xc+x, yc+y );
61 int gr_udisk(fix xc1,fix yc1,fix r1)
63 int p,x, y, xc, yc, r;
74 // Draw the first octant
75 gr_uscanline( xc-y, xc+y, yc-x );
76 gr_uscanline( xc-y, xc+y, yc+x );
81 // Draw the second octant
82 gr_uscanline( xc-x, xc+x, yc-y );
83 gr_uscanline( xc-x, xc+x, yc+y );
90 gr_uscanline( xc-x, xc+x, yc-y );
91 gr_uscanline( xc-x, xc+x, yc+y );