Nikolay Sivov : gdiplus: Let GdipDrawArcI use float args version.

Alexandre Julliard julliard at winehq.org
Thu May 8 04:50:53 CDT 2008


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Thu May  8 00:39:05 2008 +0400

gdiplus: Let GdipDrawArcI use float args version.

---

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

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 416741c..a86a015 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -932,22 +932,7 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x,
 GpStatus WINGDIPAPI GdipDrawArcI(GpGraphics *graphics, GpPen *pen, INT x,
     INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 {
-    INT save_state, num_pts;
-    GpPointF points[MAX_ARC_PTS];
-    GpStatus retval;
-
-    if(!graphics || !pen || width <= 0 || height <= 0)
-        return InvalidParameter;
-
-    num_pts = arc2polybezier(points, x, y, width, height, startAngle, sweepAngle);
-
-    save_state = prepare_dc(graphics, pen);
-
-    retval = draw_polybezier(graphics, pen, points, num_pts, TRUE);
-
-    restore_dc(graphics, save_state);
-
-    return retval;
+    return GdipDrawArc(graphics,pen,(REAL)x,(REAL)y,(REAL)width,(REAL)height,startAngle,sweepAngle);
 }
 
 GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics *graphics, GpPen *pen, REAL x1,




More information about the wine-cvs mailing list