From 8c538c819049ece23e2360f389af6c864e046414 Mon Sep 17 00:00:00 2001 From: Mark Dufour Date: Wed, 25 Oct 2000 21:21:50 +0000 Subject: [PATCH] X11DRV_DrawArc: swap the start and end points when drawing in clockwise direction. --- graphics/x11drv/graphics.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphics/x11drv/graphics.c b/graphics/x11drv/graphics.c index 3376546c899..39dde4133a4 100644 --- a/graphics/x11drv/graphics.c +++ b/graphics/x11drv/graphics.c @@ -343,6 +343,10 @@ X11DRV_DrawArc( DC *dc, INT left, INT top, INT right, if ((left == right) || (top == bottom) ||(lines && ((right-left==1)||(bottom-top==1)))) return TRUE; + if( dc->w.ArcDirection == AD_CLOCKWISE ) + { INT tmp = xstart; xstart = xend; xend = tmp; + tmp = ystart; ystart = yend; yend = tmp; } + oldwidth = width = physDev->pen.width; oldendcap = physDev->pen.endcap; if (!width) width = 1;