Commit 00cfffbc authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Implemented GdipDrawCurve2I.

parent 4428cc32
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
@ stub GdipDrawClosedCurve @ stub GdipDrawClosedCurve
@ stub GdipDrawClosedCurveI @ stub GdipDrawClosedCurveI
@ stdcall GdipDrawCurve2(ptr ptr ptr long long) @ stdcall GdipDrawCurve2(ptr ptr ptr long long)
@ stub GdipDrawCurve2I @ stdcall GdipDrawCurve2I(ptr ptr ptr long long)
@ stub GdipDrawCurve3 @ stub GdipDrawCurve3
@ stub GdipDrawCurve3I @ stub GdipDrawCurve3I
@ stub GdipDrawCurve @ stub GdipDrawCurve
......
...@@ -1059,6 +1059,31 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics *graphics, GpPen *pen, ...@@ -1059,6 +1059,31 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics *graphics, GpPen *pen,
return retval; return retval;
} }
GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPoint *points, INT count, REAL tension)
{
GpPointF *pointsF;
GpStatus ret;
INT i;
if(!points || count <= 0)
return InvalidParameter;
pointsF = GdipAlloc(sizeof(GpPointF)*count);
if(!pointsF)
return OutOfMemory;
for(i = 0; i < count; i++){
pointsF[i].X = (REAL)points[i].X;
pointsF[i].Y = (REAL)points[i].Y;
}
ret = GdipDrawCurve2(graphics,pen,pointsF,count,tension);
GdipFree(pointsF);
return ret;
}
GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x, GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
INT y) INT y)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment