2008-01-14 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Mon, 14 Jan 2008 18:20:32 +0000 (18:20 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Mon, 14 Jan 2008 18:20:32 +0000 (18:20 -0000)
* Screen.cs: Stub BitsPerPixel to always return 32.

svn path=/trunk/mcs/; revision=92891

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Screen.cs

index d04640af8a0cad9373c94476eb6cc1d112f85b98..a9cf25b9bbfe7136ebb85ba50fdee5b6a2d9d205 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Screen.cs: Stub BitsPerPixel to always return 32.
+
 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
 
        * Form.cs: Implement RestoreBounds.
index 2a2486a4afee85642732e5a9009c367bdd20ce90..7d5df7c412796b1bba6d6b6d3dcd9d3e7a43ace4 100644 (file)
@@ -43,7 +43,9 @@ namespace System.Windows.Forms {
                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 @@ namespace System.Windows.Forms {
                        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 @@ namespace System.Windows.Forms {
                #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;