X11DRV_DrawArc: swap the start and end points when drawing in

clockwise direction.
This commit is contained in:
Mark Dufour 2000-10-25 21:21:50 +00:00 committed by Alexandre Julliard
parent bbdb9dbba6
commit 8c538c8190
1 changed files with 4 additions and 0 deletions

View File

@ -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;