[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: |
Mon, 12 Mar 2007 16:13:39 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Heiko Weiss <brubbel> 07/03/12 16:13:39
Modified files:
. : ChangeLog
System.Drawing/Drawing2D: GraphicsPath.cs
Log message:
fixed calculating ellipse and pie.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2485&r2=1.2486
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Drawing/Drawing2D/GraphicsPath.cs?cvsroot=dotgnu-pnet&r1=1.9&r2=1.10
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2485
retrieving revision 1.2486
diff -u -b -r1.2485 -r1.2486
--- ChangeLog 9 Mar 2007 17:10:13 -0000 1.2485
+++ ChangeLog 12 Mar 2007 16:13:38 -0000 1.2486
@@ -1,3 +1,8 @@
+2007-03-12 Heiko Weiss <address@hidden>
+
+ * System.Drawing/Drawing2D/GraphicsPath.cs: fixed calculation
+ ellipse and pie.
+
2007-03-09 Radek Polak <address@hidden>
* runtime/System/Private/DebuggerHelper.cs: Managed helper class for
Index: System.Drawing/Drawing2D/GraphicsPath.cs
===================================================================
RCS file:
/sources/dotgnu-pnet/pnetlib/System.Drawing/Drawing2D/GraphicsPath.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- System.Drawing/Drawing2D/GraphicsPath.cs 25 Jan 2007 20:08:51 -0000
1.9
+++ System.Drawing/Drawing2D/GraphicsPath.cs 12 Mar 2007 16:13:38 -0000
1.10
@@ -1137,14 +1137,14 @@
double rx = this.width/2;
double ry = this.height/2;
for( int i = 0; i < iCount-1; i++ ) {
- px = rx*( 1 + DegCosinus( dStart ) ) + this.x+1;
- py = ry*( 1 + DegSinus ( dStart ) ) + this.y+1;
+ px = rx*( 1 + DegCosinus( dStart ) ) + this.x;
+ py = ry*( 1 + DegSinus ( dStart ) ) + this.y;
points[i] = new PointF( (float)px,(float)py );
if( i == 0 ) startPoint = points[i];
dStart += dDelta;
}
- px = rx*( 1 + DegCosinus( dEnd ) ) + this.x+1;
- py = ry*( 1 + DegSinus ( dEnd ) ) + this.y+1;
+ px = rx*( 1 + DegCosinus( dEnd ) ) + this.x;
+ py = ry*( 1 + DegSinus ( dEnd ) ) + this.y;
points[iCount-1] = new PointF( (float)px,(float)py );
endPoint = points[iCount-1];
return points;
@@ -1504,13 +1504,13 @@
double ry = this.height/2;
points[0] = new PointF(
(float)(this.x+rx),(float)(this.y+ry) );
for( int i = 1; i < iCount; i++ ) {
- xP = rx*( 1 + DegCosinus( dStart ) ) + this.x+1;
- yP = ry*( 1 + DegSinus ( dStart ) ) + this.y+1;
+ xP = rx*( 1 + DegCosinus( dStart ) ) + this.x;
+ yP = ry*( 1 + DegSinus ( dStart ) ) + this.y;
points[i] = new PointF( (float)xP,(float)yP );
dStart += dDelta;
}
- xP = rx*( 1 + DegCosinus( dEnd ) ) + this.x+1;
- yP = ry*( 1 + DegSinus ( dEnd ) ) + this.y+1;
+ xP = rx*( 1 + DegCosinus( dEnd ) ) + this.x;
+ yP = ry*( 1 + DegSinus ( dEnd ) ) + this.y;
points[iCount] = new PointF( (float)xP,(float)yP );
points[iCount+1] = points[0];
return points;
- [dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Grap...,
Heiko Weiss <=