X11DRV_DrawArc: Don't overwrite the ENDCAP style.

diff --git a/graphics/x11drv/graphics.c b/graphics/x11drv/graphics.c
index c36646d..b3273a6 100644
--- a/graphics/x11drv/graphics.c
+++ b/graphics/x11drv/graphics.c
@@ -337,7 +337,7 @@
                 INT xend, INT yend, INT lines )
 {
     INT xcenter, ycenter, istart_angle, idiff_angle;
-    INT width, oldwidth, oldendcap;
+    INT width, oldwidth;
     double start_angle, end_angle;
     XPoint points[4];
     BOOL update = FALSE;
@@ -362,7 +362,6 @@
       { POINT tmp = start; start = end; end = tmp; }
 
     oldwidth = width = physDev->pen.width;
-    oldendcap = physDev->pen.endcap;
     if (!width) width = 1;
     if(physDev->pen.style == PS_NULL) width = 0;
 
@@ -377,7 +376,6 @@
     }
     if(width == 0) width = 1; /* more accurate */
     physDev->pen.width = width;
-    physDev->pen.endcap = PS_ENDCAP_SQUARE;
 
     xcenter = (rc.right + rc.left) / 2;
     ycenter = (rc.bottom + rc.top) / 2;
@@ -482,7 +480,6 @@
     X11DRV_UnlockDIBSection(physDev, update);
 
     physDev->pen.width = oldwidth;
-    physDev->pen.endcap = oldendcap;
     return TRUE;
 }