Added some cool debugging information on available resolutions per device.

This commit is contained in:
the_fiddler 2008-01-25 14:32:09 +00:00
parent ed45d3590d
commit d546132a5b

View file

@ -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);