Jeff Smith : gdiplus: Use internal function to add bezier points for curve.
Alexandre Julliard
julliard at winehq.org
Thu Apr 16 16:45:13 CDT 2020
Module: wine
Branch: master
Commit: fd15bd22c49aa22e47d0edfd12d2e4a23f21d5a5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fd15bd22c49aa22e47d0edfd12d2e4a23f21d5a5
Author: Jeff Smith <whydoubt at gmail.com>
Date: Wed Apr 15 15:07:12 2020 -0500
gdiplus: Use internal function to add bezier points for curve.
Signed-off-by: Jeff Smith <whydoubt at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/graphicspath.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index ba977f970a..79e231bf1b 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -424,7 +424,7 @@ GpStatus WINGDIPAPI GdipAddPathClosedCurve2(GpPath *path, GDIPCONST GpPointF *po
pt[len_pt-1].X = pt[0].X;
pt[len_pt-1].Y = pt[0].Y;
- stat = GdipAddPathBeziers(path, pt, len_pt);
+ stat = extend_current_figure(path, pt, len_pt, PathPointTypeBezier);
/* close figure */
if(stat == Ok){
@@ -532,7 +532,7 @@ GpStatus WINGDIPAPI GdipAddPathCurve2(GpPath *path, GDIPCONST GpPointF *points,
pt[len_pt-1].X = points[count-1].X;
pt[len_pt-1].Y = points[count-1].Y;
- stat = GdipAddPathBeziers(path, pt, len_pt);
+ stat = extend_current_figure(path, pt, len_pt, PathPointTypeBezier);
heap_free(pt);
More information about the wine-cvs
mailing list