Author: jpobst
Date: 2008-01-14 13:20:32 -0500 (Mon, 14 Jan 2008)
New Revision: 92891
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Screen.cs
Log:
2008-01-14 Jonathan Pobst <[EMAIL PROTECTED]>
* Screen.cs: Stub BitsPerPixel to always return 32.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-14 18:07:15 UTC (rev 92890)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-14 18:20:32 UTC (rev 92891)
@@ -1,5 +1,9 @@
2008-01-14 Jonathan Pobst <[EMAIL PROTECTED]>
+ * Screen.cs: Stub BitsPerPixel to always return 32.
+
+2008-01-14 Jonathan Pobst <[EMAIL PROTECTED]>
+
* Form.cs: Implement RestoreBounds.
2008-01-14 Jonathan Pobst <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Screen.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Screen.cs
2008-01-14 18:07:15 UTC (rev 92890)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Screen.cs
2008-01-14 18:20:32 UTC (rev 92891)
@@ -43,7 +43,9 @@
private Rectangle bounds;
private Rectangle workarea;
private string name;
-
+#if NET_2_0
+ private int bits_per_pixel;
+#endif
#endregion // Local Variables
#region Constructors
@@ -57,6 +59,9 @@
this.name = name;
this.bounds = bounds;
this.workarea = workarea;
+#if NET_2_0
+ this.bits_per_pixel = 32;
+#endif
}
#endregion // Constructors
@@ -75,6 +80,13 @@
#endregion // Public Static Properties
#region Public Instance Properties
+#if NET_2_0
+ [MonoTODO ("Stub, always returns 32")]
+ public int BitsPerPixel {
+ get { return bits_per_pixel; }
+ }
+#endif
+
public Rectangle Bounds {
get {
return this.bounds;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches