From 42acaf31654ed7b64d32609004087f8a3cd468fe Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 23 Jan 2008 14:39:27 +0000 Subject: [PATCH] Renamed Display to DisplayDevice. --- Source/OpenTK/DisplayMode.cs | 4 ++-- Source/OpenTK/Graphics/Display.cs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/OpenTK/DisplayMode.cs b/Source/OpenTK/DisplayMode.cs index 65ec6249..90c0c1b9 100644 --- a/Source/OpenTK/DisplayMode.cs +++ b/Source/OpenTK/DisplayMode.cs @@ -45,7 +45,7 @@ namespace OpenTK /// Constructs a new DisplayMode with sensible default parameters. public DisplayMode() - : this(Display.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 2, false) + : this(DisplayDevice.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 2, false) { } @@ -141,7 +141,7 @@ namespace OpenTK /// The Height of the DisplayMode in pixels. [Obsolete] public DisplayMode(int width, int height) - : this(width, height, Display.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 0, false, false, false, 0.0f) + : this(width, height, DisplayDevice.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 0, false, false, false, 0.0f) { } diff --git a/Source/OpenTK/Graphics/Display.cs b/Source/OpenTK/Graphics/Display.cs index 51085965..be0f5e34 100644 --- a/Source/OpenTK/Graphics/Display.cs +++ b/Source/OpenTK/Graphics/Display.cs @@ -16,7 +16,7 @@ namespace OpenTK.Graphics /// Defines a display device on the underlying system, and provides /// methods to query and change its display parameters. /// - public class Display + public class DisplayDevice { // TODO: Add support for refresh rate queries and switches. // TODO: Check whether bits_per_pixel works correctly under Mono/X11. @@ -29,20 +29,20 @@ namespace OpenTK.Graphics float refresh_rate; bool primary; - static List available_displays = new List(); + static List available_displays = new List(); static object display_lock = new object(); - static Display primary_display; + static DisplayDevice primary_display; #region --- Constructors --- - static Display() + static DisplayDevice() { lock (display_lock) { int i = 0; foreach (System.Windows.Forms.Screen scr in System.Windows.Forms.Screen.AllScreens) { - available_displays.Add(new Display(scr.Bounds.Width, scr.Bounds.Height, 32, 0, scr.Primary)); + available_displays.Add(new DisplayDevice(scr.Bounds.Width, scr.Bounds.Height, 32, 0, scr.Primary)); if (scr.Primary) primary_display = available_displays[i]; ++i; @@ -50,7 +50,7 @@ namespace OpenTK.Graphics } } - Display(int width, int height, int bitsPerPixel, float refreshRate, bool primary) + DisplayDevice(int width, int height, int bitsPerPixel, float refreshRate, bool primary) { this.width = width; this.height = height; @@ -78,7 +78,7 @@ namespace OpenTK.Graphics /// /// Gets an array of OpenTK.Display objects, which describe all available display devices. /// - public static Display[] AvailableDisplays + public static DisplayDevice[] AvailableDisplays { get { @@ -90,7 +90,7 @@ namespace OpenTK.Graphics } /// Gets the primary display of this system. - public static Display PrimaryDisplay { get { return primary_display; } } + public static DisplayDevice PrimaryDisplay { get { return primary_display; } } #endregion