add unbordered polygons
authorDave Slattengren <slatteng@ucbvax.Berkeley.EDU>
Thu, 10 May 1984 08:00:36 +0000 (00:00 -0800)
committerDave Slattengren <slatteng@ucbvax.Berkeley.EDU>
Thu, 10 May 1984 08:00:36 +0000 (00:00 -0800)
SCCS-vsn: local/ditroff/ditroff.old.okeeffe/driver/dip.c 1.10
SCCS-vsn: local/ditroff/ditroff.old.okeeffe/driver/draw.c 1.8

usr/src/local/ditroff/ditroff.old.okeeffe/driver/dip.c
usr/src/local/ditroff/ditroff.old.okeeffe/driver/draw.c

index 6ac1a69..1cae4e7 100644 (file)
@@ -1,4 +1,4 @@
-/*     dip.c   1.9     (Berkeley)      84/04/30
+/*     dip.c   1.10    (Berkeley)      84/05/09
  *     dip
  *     driver for impress/imagen canon laser printer
  */
  *     dip
  *     driver for impress/imagen canon laser printer
  */
index cf9cf77..78a642f 100644 (file)
@@ -1,4 +1,4 @@
-/*     draw.c  1.7     84/04/13
+/*     draw.c  1.8     84/05/09
  *
  *     This file contains the functions for producing the graphics
  *   images in the canon/imagen driver for ditroff.
  *
  *     This file contains the functions for producing the graphics
  *   images in the canon/imagen driver for ditroff.
@@ -46,6 +46,7 @@ extern putint();
 
 int    linethickness = -1;     /* number of pixels wide to make lines */
 int    linmod = SOLID;         /* type of line (SOLID, DOTTED, DASHED...) */
 
 int    linethickness = -1;     /* number of pixels wide to make lines */
 int    linmod = SOLID;         /* type of line (SOLID, DOTTED, DASHED...) */
+int    polyborder = 1;         /* flag for whether or not to draw a border */
 
 
 
 
 
 
@@ -305,8 +306,10 @@ int npts;
                word(xbound(x[i]));
                word(ybound(y[i]));
        }
                word(xbound(x[i]));
                word(ybound(y[i]));
        }
-       byte(ADRAW);
-       byte(15);
+       if (polyborder) {
+               byte(ADRAW);    /* draw the border, if requested */
+               byte(15);
+       }
        if (laststipmem) {      /* draw a filled path, if requested */
                byte(AFPATH);
                byte(7);
        if (laststipmem) {      /* draw a filled path, if requested */
                byte(AFPATH);
                byte(7);