diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2006-04-19 19:02:27 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2006-04-19 19:02:27 +0400 |
commit | abb1b0114da6cf2f8817368810acda055deb0c80 (patch) | |
tree | 2b3b8b3370aa3f0c0ab4f414acac72413bde88dc /mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs | |
parent | 04c2a711814c68a038f3fbf4cc72a74a519ae2d6 (diff) |
2006-04-19 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPath.cs: Fix null pen handling in Widen.
* LinearGradientBrush.cs: Avoid temporary Rectangle local and directly
get use the instance RectangleF.
svn path=/trunk/mcs/; revision=59645
Diffstat (limited to 'mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs')
-rw-r--r-- | mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs index 9a32f707241..00277f547c4 100644 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs +++ b/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs @@ -47,10 +47,8 @@ namespace System.Drawing.Drawing2D { Status status = GDIPlus.GdipCreateLineBrushI (ref point1, ref point2, color1.ToArgb (), color2.ToArgb (), WrapMode.Tile, out nativeObject); GDIPlus.CheckStatus (status); - Rectangle rect; - status = GDIPlus.GdipGetLineRectI (nativeObject, out rect); + status = GDIPlus.GdipGetLineRect (nativeObject, out rectangle); GDIPlus.CheckStatus (status); - rectangle = (RectangleF) rect; } public LinearGradientBrush (PointF point1, PointF point2, Color color1, Color color2) |