From d546132a5bbff8b90f91067d354103d4512c4638 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 14:32:09 +0000 Subject: [PATCH] Added some cool debugging information on available resolutions per device. --- Source/OpenTK/Graphics/DisplayDevice.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 73095729..cccb013d 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -70,6 +70,12 @@ namespace OpenTK.Graphics this.primary = primary; this.available_resolutions.AddRange(availableResolutions); + Debug.Print("DisplayDevice {0} supports {1} resolutions.", available_displays.Count, available_resolutions.Count); + Debug.Indent(); + foreach (DisplayResolution res in available_resolutions) + Debug.Print(res.ToString()); + Debug.Unindent(); + lock (display_lock) { available_displays.Add(this);