[Mono-dev] Patch for Bug 76907
Ivan N. Zlatev
contact at i-nz.net
Sun Dec 4 06:23:06 EST 2005
Hey,
I don't know if this is the right place to post this, but this is a
patch, which is supposed to fix bug 76907. Here it is...
Greets,
Ivan N. Zlatev
Index: mcs/class/System.Drawing/System.Drawing/Graphics.cs
===================================================================
— mcs/class/System.Drawing/System.Drawing/Graphics.cs (revision 53896)
+++ mcs/class/System.Drawing/System.Drawing/Graphics.cs (working copy)
@@ -387,8 +387,10 @@
throw new ArgumentNullException (”points”);
Status status;
+ int numberOfPoints = numberOfSegments + 1;
+
status = GDIPlus.GdipDrawCurve3 (nativeObject, pen.nativeObject,
- points, points.Length, offset,
+ points, numberOfPoints, offset,
numberOfSegments, 0.5f);
GDIPlus.CheckStatus (status);
}
@@ -401,8 +403,10 @@
throw new ArgumentNullException (”points”);
Status status;
+ int numberOfPoints = numberOfSegments + 1;
+
status = GDIPlus.GdipDrawCurve3I (nativeObject, pen.nativeObject,
- points, points.Length, offset,
+ points, numberOfPoints, offset,
numberOfSegments, tension);
GDIPlus.CheckStatus (status);
}
@@ -416,8 +420,10 @@
throw new ArgumentNullException (”points”);
Status status;
+ int numberOfPoints = numberOfSegments + 1;
+
status = GDIPlus.GdipDrawCurve3 (nativeObject, pen.nativeObject,
- points, points.Length, offset,
+ points, numberOfPoints, offset,
numberOfSegments, tension);
GDIPlus.CheckStatus (status);
}
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DrawCurve.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051204/ba7f4417/attachment.pl
More information about the Mono-devel-list
mailing list