gdi32: Fix coordinate mapping of arc limits.

This commit is contained in:
Alexandre Julliard 2012-11-19 12:48:06 +01:00
parent 6e566ce6c2
commit 1c4cf1a2db
1 changed files with 4 additions and 4 deletions

View File

@ -304,10 +304,10 @@ static BOOL draw_arc( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
pt[1].y = end_y;
LPtoDP( dev->hdc, pt, 2 );
/* make them relative to the ellipse center */
pt[0].x -= left + width / 2;
pt[0].y -= top + height / 2;
pt[1].x -= left + width / 2;
pt[1].y -= top + height / 2;
pt[0].x -= rect.left + width / 2;
pt[0].y -= rect.top + height / 2;
pt[1].x -= rect.left + width / 2;
pt[1].y -= rect.top + height / 2;
points = HeapAlloc( GetProcessHeap(), 0, (width + height) * 3 * sizeof(*points) );
if (!points) return FALSE;