Author: miguel
Date: 2006-01-13 11:38:57 -0500 (Fri, 13 Jan 2006)
New Revision: 55522

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Region.cs
Log:
2006-01-13  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Region.cs: Revert the Region.cs check in GetHrgn as it was used
        by our Windows.Forms implementation.

Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-01-13 
16:25:16 UTC (rev 55521)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-01-13 
16:38:57 UTC (rev 55522)
@@ -1,3 +1,8 @@
+2006-01-13  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Region.cs: Revert the Region.cs check in GetHrgn as it was used
+       by our Windows.Forms implementation.
+
 2006-01-11  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Graphics.cs: Avoid creating bitmaps two times if both X and Y 

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Region.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Region.cs     2006-01-13 
16:25:16 UTC (rev 55521)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Region.cs     2006-01-13 
16:38:57 UTC (rev 55522)
@@ -524,8 +524,14 @@
                
                public IntPtr GetHrgn(Graphics g)
                {
+#if false
+                       //
+                       // Our WindowsForms implementation uses null to avoid
+                       // creating a Graphics context when not needed
+                       //
                        if (g == null)
                                throw new ArgumentNullException ("g");
+#endif
                        return nativeRegion;
                }
                

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to