Commit 63ff31ea authored by Luc Tourangeau's avatar Luc Tourangeau Committed by Alexandre Julliard

Added a call to the newpath operator immediately before the arc

operator.
parent cfbafe32
......@@ -152,6 +152,9 @@ static char psfill[] =
static char pseofill[] =
"eofill\n";
static char psnewpath[] =
"newpath\n";
static char psclosepath[] =
"closepath\n";
......@@ -508,6 +511,10 @@ BOOL PSDRV_WriteArc(DC *dc, INT x, INT y, INT w, INT h, double ang1,
/* Make angles -ve and swap order because we're working with an upside
down y-axis */
sprintf(buf, psarc, x, y, w, h, -ang2, -ang1);
/* Write newpath operator to ensure there's no line segment drawn
from the current point to the beginning of the arc. */
PSDRV_WriteNewPath( dc );
return PSDRV_WriteSpool(dc, buf, strlen(buf));
}
......@@ -679,6 +686,11 @@ BOOL PSDRV_WriteGRestore(DC *dc)
return PSDRV_WriteSpool(dc, psgrestore, sizeof(psgrestore)-1);
}
BOOL PSDRV_WriteNewPath(DC *dc)
{
return PSDRV_WriteSpool(dc, psnewpath, sizeof(psnewpath)-1);
}
BOOL PSDRV_WriteClosePath(DC *dc)
{
return PSDRV_WriteSpool(dc, psclosepath, sizeof(psclosepath)-1);
......
......@@ -286,6 +286,7 @@ extern BOOL PSDRV_WriteFill(DC *dc);
extern BOOL PSDRV_WriteEOFill(DC *dc);
extern BOOL PSDRV_WriteGSave(DC *dc);
extern BOOL PSDRV_WriteGRestore(DC *dc);
extern BOOL PSDRV_WriteNewPath(DC *dc);
extern BOOL PSDRV_WriteClosePath(DC *dc);
extern BOOL PSDRV_WriteClip(DC *dc);
extern BOOL PSDRV_WriteRectClip(DC *dc, CHAR *pszArrayName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment