Browse Source

(GdipGetPathTypes, GdipGetPathPoints): Add
OutAttribute to the array argument. This fixes the PathPoints
property in System.Drawing.Drawing2D.GraphicsPath.

svn path=/trunk/mcs/; revision=22371

Duncan Mak 22 years ago
parent
commit
bfddd84cdb

+ 1 - 2
mcs/class/System.Drawing/System.Drawing.Drawing2D/GraphicsPath.cs

@@ -3,7 +3,7 @@
 //
 // Authors:
 //
-//   Miguel de Icaza ([email protected])v
+//   Miguel de Icaza ([email protected])
 //   Duncan Mak ([email protected])
 //
 // (C) 2004 Novell, Inc
@@ -15,7 +15,6 @@ using System.Runtime.InteropServices;
 
 namespace System.Drawing.Drawing2D
 {
-
         public sealed class GraphicsPath : MarshalByRefObject, ICloneable, IDisposable {
 
                 internal IntPtr nativePath;

+ 6 - 0
mcs/class/System.Drawing/System.Drawing/ChangeLog

@@ -1,3 +1,9 @@
+2004-01-21  Duncan Mak  <[email protected]>
+
+	* gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
+	OutAttribute to the array argument. This fixes the PathPoints
+	property in System.Drawing.Drawing2D.GraphicsPath.
+
 2004-01-20  Ravindra  <[email protected]>
 
 	* Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting

+ 3 - 3
mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs

@@ -319,11 +319,11 @@ namespace System.Drawing {
                 [DllImport ("gdiplus.dll")]                
                 internal static extern Status GdipGetPointCount (IntPtr path, out int count);
                 [DllImport ("gdiplus.dll")]                
-                internal static extern Status GdipGetPathTypes (IntPtr path, byte [] types, int count);
+                internal static extern Status GdipGetPathTypes (IntPtr path, [Out] byte [] types, int count);
                 [DllImport ("gdiplus.dll")]                
-                internal static extern Status GdipGetPathPoints (IntPtr path, PointF [] points, int count);
+                internal static extern Status GdipGetPathPoints (IntPtr path, [Out] PointF [] points, int count);
                 [DllImport ("gdiplus.dll")]                
-                internal static extern Status GdipGetPathPointsI (IntPtr path, Point [] points, int count);
+                internal static extern Status GdipGetPathPointsI (IntPtr path, [Out] Point [] points, int count);
                 [DllImport ("gdiplus.dll")]                                
                 internal static extern Status GdipGetPathFillMode (IntPtr path, out FillMode fillMode);
                 [DllImport ("gdiplus.dll")]                                                

+ 0 - 2
mcs/class/System.Drawing/gdiplus/graphics-path.c

@@ -759,5 +759,3 @@ GdipIsOutlineVisiblePathPointI (GpPath *path, int x, int y, GpGraphics *graphics
 {
         return NotImplemented;
 }
-
-