Alexandre Julliard : gdi32: Fix coordinate mapping of arc limits.

Alexandre Julliard julliard at winehq.org
Mon Nov 19 13:38:38 CST 2012


Module: wine
Branch: master
Commit: 1c4cf1a2db92045895864423f07ef973cc205dc6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1c4cf1a2db92045895864423f07ef973cc205dc6

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov 19 12:48:06 2012 +0100

gdi32: Fix coordinate mapping of arc limits.

---

 dlls/gdi32/dibdrv/graphics.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/dibdrv/graphics.c b/dlls/gdi32/dibdrv/graphics.c
index 0b54188..f358fbd 100644
--- a/dlls/gdi32/dibdrv/graphics.c
+++ b/dlls/gdi32/dibdrv/graphics.c
@@ -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;




More information about the wine-cvs mailing list