Evan Stade : gdiplus: Fixed a bug in helper function draw_polybezier.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 10 08:02:40 CDT 2007


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

Author: Evan Stade <estade at gmail.com>
Date:   Mon Jul  9 20:54:27 2007 -0700

gdiplus: Fixed a bug in helper function draw_polybezier.

---

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

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, GpPen *pen, GDIPCONST GpPointF * pt,
         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);




More information about the wine-cvs mailing list