[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingPen.cs,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingPen.cs,1.3,1.4 |
Date: |
Fri, 20 Jun 2003 20:42:44 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv22717/System.Drawing.Xsharp
Modified Files:
DrawingPen.cs
Log Message:
Dashed pens only work in X with a line width of 0, not 1.
Index: DrawingPen.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingPen.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DrawingPen.cs 20 Jun 2003 23:28:28 -0000 1.3
--- DrawingPen.cs 21 Jun 2003 00:42:42 -0000 1.4
***************
*** 100,107 ****
{
Xsharp.Graphics g = graphics.graphics;
! g.LineWidth = (int)(properties.Width);
LineStyle style =
MapLineStyle(properties.DashStyle);
if(style == LineStyle.LineOnOffDash)
{
switch(properties.DashStyle)
{
--- 100,111 ----
{
Xsharp.Graphics g = graphics.graphics;
! int width = (int)(properties.Width);
LineStyle style =
MapLineStyle(properties.DashStyle);
if(style == LineStyle.LineOnOffDash)
{
+ if(width == 1)
+ {
+ width = 0;
+ }
switch(properties.DashStyle)
{
***************
*** 131,134 ****
--- 135,139 ----
}
}
+ g.LineWidth = width;
g.LineStyle = style;
g.CapStyle =
MapCapStyle(properties.EndCap);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingPen.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=