[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing Graphics.cs, 1.11, 1.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing Graphics.cs, 1.11, 1.12 Pen.cs, 1.2, 1.3 |
Date: |
Mon, 04 Aug 2003 02:46:05 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing
In directory subversions:/tmp/cvs-serv25229/System.Drawing
Modified Files:
Graphics.cs Pen.cs
Log Message:
Pass the brush properties for a pen down to the toolkit layer;
pen brush selection for Xsharp.
Index: Graphics.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Graphics.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** Graphics.cs 4 Aug 2003 04:47:22 -0000 1.11
--- Graphics.cs 4 Aug 2003 06:46:03 -0000 1.12
***************
*** 2934,2938 ****
}
IToolkitPen tpen = pen.GetPen(graphics.Toolkit);
! tpen.Select(graphics);
}
--- 2934,2946 ----
}
IToolkitPen tpen = pen.GetPen(graphics.Toolkit);
! if(pen.PenType == PenType.SolidColor)
! {
! tpen.Select(graphics);
! }
! else
! {
! IToolkitBrush tbrush =
pen.Brush.GetBrush(graphics.Toolkit);
! tpen.Select(graphics, tbrush);
! }
}
Index: Pen.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Pen.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Pen.cs 4 Aug 2003 06:32:28 -0000 1.2
--- Pen.cs 4 Aug 2003 06:46:03 -0000 1.3
***************
*** 385,388 ****
--- 385,392 ----
}
toolkit = null;
+ if(brush != null)
+ {
+ brush.Modified();
+ }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing Graphics.cs, 1.11, 1.12 Pen.cs, 1.2, 1.3,
Rhys Weatherley <address@hidden> <=