Author: borisk
Date: 2006-08-28 05:14:00 -0400 (Mon, 28 Aug 2006)
New Revision: 64465

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/SystemColors.jvm.cs
Log:
Fix array size for NET_2_0

Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-08-28 
09:10:52 UTC (rev 64464)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-08-28 
09:14:00 UTC (rev 64465)
@@ -1,3 +1,7 @@
+2006-08-28     Boris Kirzner   <[EMAIL PROTECTED]>
+
+       * SystemColors.jvm.cs: fix array size for NET_2_0
+
 2006-08-27  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * ColorConverter.cs: Catch the case where the integer part of the 

Modified: trunk/mcs/class/System.Drawing/System.Drawing/SystemColors.jvm.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/SystemColors.jvm.cs   
2006-08-28 09:10:52 UTC (rev 64464)
+++ trunk/mcs/class/System.Drawing/System.Drawing/SystemColors.jvm.cs   
2006-08-28 09:14:00 UTC (rev 64465)
@@ -40,7 +40,11 @@
                
                static SystemColors ()
                {
-                       SystemColorsCache = new Color[27]; //enough for all 
system color indices
+#if !NET_2_0
+                       SystemColorsCache = new Color[27]; //enough for all 
system color indices
+#else
+                       SystemColorsCache = new Color [175]; //enough for all 
system color indices
+#endif
 
                        if (Graphics.IsHeadless) {
                                SystemColorsCache[(int)KnownColor.ActiveBorder] 
= Color.FromArgbSystem (255, 212, 208, 200, "ActiveBorder", 
KnownColor.ActiveBorder);

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

Reply via email to