[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Grap...
From: |
Heiko Weiss |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Grap... |
Date: |
Wed, 18 Apr 2007 14:57:21 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Heiko Weiss <brubbel> 07/04/18 14:57:21
Modified files:
. : ChangeLog
System.Drawing/Drawing2D: GraphicsPath.cs
Log message:
fixed closing figure to draw to from end to startpoint.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2493&r2=1.2494
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Drawing/Drawing2D/GraphicsPath.cs?cvsroot=dotgnu-pnet&r1=1.10&r2=1.11
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2493
retrieving revision 1.2494
diff -u -b -r1.2493 -r1.2494
--- ChangeLog 9 Apr 2007 11:58:01 -0000 1.2493
+++ ChangeLog 18 Apr 2007 14:57:21 -0000 1.2494
@@ -1,3 +1,7 @@
+2007-04-18 Heiko Weiss <address@hidden>
+
+ * System.Drawing/Drawing2D/GraphicsPath.cs: fixed closing figure.
+
2007-04-09 Radek Polak <address@hidden>
* runtime/System/Private/DebuggerHelper.cs: Allow watches for static
Index: System.Drawing/Drawing2D/GraphicsPath.cs
===================================================================
RCS file:
/sources/dotgnu-pnet/pnetlib/System.Drawing/Drawing2D/GraphicsPath.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- System.Drawing/Drawing2D/GraphicsPath.cs 16 Mar 2007 07:14:17 -0000
1.10
+++ System.Drawing/Drawing2D/GraphicsPath.cs 18 Apr 2007 14:57:21 -0000
1.11
@@ -583,6 +583,7 @@
// Close the current figure and start a new one.
public void CloseFigure()
{
+ if( null != actualFigure )
actualFigure.CloseFigure();
actualFigure = null;
}
@@ -845,6 +846,7 @@
private class PathFigure : ICloneable
{
+ bool closedFigure = false;
public ArrayList pathObjs;
public PathFigure()
@@ -860,6 +862,10 @@
return cpy;
}
+ public void CloseFigure() {
+ this.closedFigure = true;
+ }
+
public PointF[] GetPathPoints() {
PointF[][] fpoints = new PointF[pathObjs.Count][];
int size=0;
@@ -871,6 +877,8 @@
i++;
}
+ if( this.closedFigure ) size += 1;
+
PointF[] poly= new PointF[size];
int z=0;
for(i=0;i<fpoints.Length;i++) {
@@ -880,6 +888,7 @@
}
}
}
+ if( this.closedFigure ) poly[z++] = poly[0];
return poly;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Grap...,
Heiko Weiss <=