Commit c124fd6f authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

X11DRV_DrawArc: Don't overwrite the ENDCAP style.

parent 47977c4f
...@@ -337,7 +337,7 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right, ...@@ -337,7 +337,7 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
INT xend, INT yend, INT lines ) INT xend, INT yend, INT lines )
{ {
INT xcenter, ycenter, istart_angle, idiff_angle; INT xcenter, ycenter, istart_angle, idiff_angle;
INT width, oldwidth, oldendcap; INT width, oldwidth;
double start_angle, end_angle; double start_angle, end_angle;
XPoint points[4]; XPoint points[4];
BOOL update = FALSE; BOOL update = FALSE;
...@@ -362,7 +362,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right, ...@@ -362,7 +362,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
{ POINT tmp = start; start = end; end = tmp; } { POINT tmp = start; start = end; end = tmp; }
oldwidth = width = physDev->pen.width; oldwidth = width = physDev->pen.width;
oldendcap = physDev->pen.endcap;
if (!width) width = 1; if (!width) width = 1;
if(physDev->pen.style == PS_NULL) width = 0; if(physDev->pen.style == PS_NULL) width = 0;
...@@ -377,7 +376,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right, ...@@ -377,7 +376,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
} }
if(width == 0) width = 1; /* more accurate */ if(width == 0) width = 1; /* more accurate */
physDev->pen.width = width; physDev->pen.width = width;
physDev->pen.endcap = PS_ENDCAP_SQUARE;
xcenter = (rc.right + rc.left) / 2; xcenter = (rc.right + rc.left) / 2;
ycenter = (rc.bottom + rc.top) / 2; ycenter = (rc.bottom + rc.top) / 2;
...@@ -482,7 +480,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right, ...@@ -482,7 +480,6 @@ X11DRV_DrawArc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
X11DRV_UnlockDIBSection(physDev, update); X11DRV_UnlockDIBSection(physDev, update);
physDev->pen.width = oldwidth; physDev->pen.width = oldwidth;
physDev->pen.endcap = oldendcap;
return TRUE; return TRUE;
} }
......
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