]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/hpgltops.h
Merge CUPS 1.4svn-r8052 (tentative 1.4b1)
[thirdparty/cups.git] / filter / hpgltops.h
index c45630b99f43305d3d49c2f176085d24dc46e42a..4fe45d282bc688368ab81e2f82c03781428ea3e7 100644 (file)
@@ -1,25 +1,16 @@
 /*
- * "$Id: hpgltops.h 177 2006-06-21 00:20:03Z jlovell $"
+ * "$Id: hpgltops.h 6649 2007-07-11 21:46:42Z mike $"
  *
  *   HP-GL/2 to PostScript filter for the Common UNIX Printing System (CUPS).
  *
+ *   Copyright 2007 by Apple Inc.
  *   Copyright 1993-2005 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636 USA
- *
- *       Voice: (301) 373-9600
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
+ *   property of Apple Inc. and are protected by Federal copyright
+ *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ *   which should have been included with this file.  If this file is
+ *   file is missing or damaged, see the license at "http://www.cups.org/".
  *
  *   This file is subject to the Apple OS-Developed Software exception.
  */
 #  define M_PI 3.14159265358979323846
 #endif /* M_PI */
 
+
+/*
+ * Maximum number of pens we emulate...
+ */
+
+#define MAX_PENS       1024
+
+
 /*
  * Parameter value structure...
  */
@@ -117,10 +116,10 @@ VAR float PenPosition[2]  VALUE2(0.0f, 0.0f),
                                                /* Current pen position */
                PenScaling      VALUE(1.0f),    /* Pen width scaling factor */
                PenWidth        VALUE(1.0f);    /* Default pen width */
-VAR pen_t      Pens[1024];                     /* State of each pen */
+VAR pen_t      Pens[MAX_PENS];                 /* State of each pen */
 VAR int                PenMotion       VALUE(0),       /* 0 = absolute, 1 = relative */
                PenValid        VALUE(0),       /* 1 = valid position, 0 = undefined */
-               PenNumber       VALUE(1),       /* Current pen number */
+               PenNumber       VALUE(0),       /* Current pen number */
                PenCount        VALUE(8),       /* Number of pens */
                PenDown         VALUE(0),       /* 0 = pen up, 1 = pen down */
                PolygonMode     VALUE(0),       /* Drawing polygons? */
@@ -237,5 +236,5 @@ extern void OutputTrailer(void);
 extern int     Outputf(const char *format, ...);
 
 /*
- * End of "$Id: hpgltops.h 177 2006-06-21 00:20:03Z jlovell $".
+ * End of "$Id: hpgltops.h 6649 2007-07-11 21:46:42Z mike $".
  */