From 484832eff4a4fbb623ddefd54b53619084c9251e Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 15:19:45 +0000 Subject: [PATCH] Removed a couple of debug messages. Now marks the current resolution among all available resolutions in debug mode. --- Source/OpenTK/Graphics/DisplayDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 767ff1db..75856e6b 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -74,7 +74,7 @@ namespace OpenTK.Graphics available_displays.Count, available_resolutions.Count, primary ? "primary" : "secondary"); Debug.Indent(); foreach (DisplayResolution res in available_resolutions) - Debug.Print(res.ToString()); + Debug.Print(res == current_resolution ? String.Format(">>{0}<<", res.ToString()) : res.ToString()); Debug.Unindent(); lock (display_lock) @@ -106,7 +106,7 @@ namespace OpenTK.Graphics #region public int BitsPerPixel /// Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32. - public int BitsPerPixel { get { Debug.Print("This method is not supported currently."); return current_resolution.BitsPerPixel; } } + public int BitsPerPixel { get { return current_resolution.BitsPerPixel; } } #endregion