Commit 79e94a74 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

PSDRV_WriteArc shouldn't write a newpath.

parent dbb4ad82
......@@ -152,6 +152,9 @@ static BOOL PSDRV_DrawArc( DC *dc, INT left, INT top,
if(lines == 2) /* pie */
PSDRV_WriteMoveTo(dc, x, y);
else
PSDRV_WriteNewPath( dc );
PSDRV_WriteArc(dc, x, y, w, h, start_angle, end_angle);
if(lines == 1 || lines == 2) { /* chord or pie */
PSDRV_WriteClosePath(dc);
......
......@@ -511,10 +511,6 @@ 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));
}
......
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