home *** CD-ROM | disk | FTP | other *** search
- /*
- * xorpolyline.c -- xor display polyline.
- * Uses current color.
- *
- * 9 july 1989 Olle Olsson.
- */
-
- #include <graphics.h>
- #include "egatc.h"
-
- /* the prototype could be placed in egatc.h */
- void xorpolyline( int ncorners, int corners[] );
-
- void xorpolyline( nco, co )
- int nco; /* number of corners */
- int co[]; /* the corners */
- {
- register int cl;
-
- if (nco < 2)
- return;
-
- /* get current color */
- cl = getcolor();
-
- /* the vector contains nco * 2 values */
- for (--nco; nco; --nco, co += 2)
- xorline( co[0], co[1], co[2], co[3], cl );
- }
-
-
-