diff options
Diffstat (limited to 'Xprint/pcl/PclPixel.c')
-rw-r--r-- | Xprint/pcl/PclPixel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Xprint/pcl/PclPixel.c b/Xprint/pcl/PclPixel.c index 23ec464e5..b9685fd1b 100644 --- a/Xprint/pcl/PclPixel.c +++ b/Xprint/pcl/PclPixel.c @@ -44,6 +44,7 @@ not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from said copyright holders. */ +/* $XFree86: xc/programs/Xserver/Xprint/pcl/PclPixel.c,v 1.6 2001/10/28 03:32:55 tsi Exp $ */ #include <stdio.h> @@ -60,7 +61,7 @@ PclPolyPoint( pDrawable, pGC, mode, nPoints, pPoints ) int nPoints; xPoint *pPoints; { - char t[80], *command; + char t[80]; FILE *outFile; int xoffset, yoffset; BoxRec box; @@ -84,7 +85,7 @@ PclPolyPoint( pDrawable, pGC, mode, nPoints, pPoints ) xloc = pPoints[0].x + pDrawable->x; yloc = pPoints[0].y + pDrawable->y; - sprintf( t, "\27%0BPW0,0;LT0;PU;PA%d,%d", xloc, yloc ); + sprintf( t, "\27%%0BPW0,0;LT0;PU;PA%d,%d", xloc, yloc ); SEND_PCL( outFile, t ); /* @@ -94,7 +95,7 @@ PclPolyPoint( pDrawable, pGC, mode, nPoints, pPoints ) for( i = 0; i < nPoints; i++ ) { - if( miPointInRegion( pGC->clientClip, xloc, yloc, &box ) ) + if( POINT_IN_REGION( pGC->pScreen, pGC->clientClip, xloc, yloc, &box ) ) { sprintf( t, ",%d,%d", xloc, yloc ); SEND_PCL( outFile, t ); |