gdiplus: Fix center point calculation in GdipAddPathPie.

Vincent Povirk madewokherd at gmail.com
Tue Nov 8 10:21:02 CST 2011


For bug 28691.
-------------- next part --------------
From a20124d77a7e4d497b41c927a0ff39bdf18f4e9b Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 Nov 2011 10:18:22 -0600
Subject: [PATCH] gdiplus: Fix center point calculation in GdipAddPathPie.

---
 dlls/gdiplus/graphicspath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 971ab31..120802c 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -744,7 +744,7 @@ GpStatus WINGDIPAPI GdipAddPathPie(GpPath *path, REAL x, REAL y, REAL width, REA
 
     arc2polybezier(ptf, x, y, width, height, startAngle, sweepAngle);
 
-    status = GdipAddPathLine(path, (width - x)/2, (height - y)/2, ptf[0].X, ptf[0].Y);
+    status = GdipAddPathLine(path, x + width/2, y + height/2, ptf[0].X, ptf[0].Y);
     if(status != Ok){
         GdipFree(ptf);
         return status;
-- 
1.7.4.1


More information about the wine-patches mailing list