gdiplus: Let GdipDrawArcI use float args version.
This commit is contained in:
parent
6bca330d4d
commit
a77dc34b41
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue