[4/5] gdiplus: fixed draw_polybezier

Evan Stade estade at gmail.com
Mon Jul 9 22:54:27 CDT 2007


Hi,

Changelog:
*fixed a bug in helper function draw_polybezier

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

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index b640621..3a88295 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -376,8 +376,8 @@ static void draw_polybezier(HDC hdc, GpP
         pti[i].y = roundr(pt[i].Y);
     }
     for(i = 0; i < 4; i ++){
-        pti[i].x = roundr(ptf[i].X);
-        pti[i].y = roundr(ptf[i].Y);
+        pti[i + count - 4].x = roundr(ptf[i].X);
+        pti[i + count - 4].y = roundr(ptf[i].Y);
     }
 
     PolyBezier(hdc, pti, count);
-- 
1.4.1


More information about the wine-patches mailing list