Slightly improved debug string for each DisplayDevice.

This commit is contained in:
the_fiddler 2008-01-25 15:33:41 +00:00
parent 7a12e6de77
commit c0984b7741

View file

@ -70,11 +70,11 @@ namespace OpenTK.Graphics
this.primary = primary;
this.available_resolutions.AddRange(availableResolutions);
Debug.Print("DisplayDevice {0} supports {1} resolutions ({2}).",
available_displays.Count, available_resolutions.Count, primary ? "primary" : "secondary");
Debug.Print("DisplayDevice {0} ({1}) supports {2} resolutions.",
available_displays.Count, primary ? "primary" : "secondary", available_resolutions.Count);
Debug.Indent();
foreach (DisplayResolution res in available_resolutions)
Debug.Print(res == current_resolution ? String.Format(">>{0}<<", res.ToString()) : res.ToString());
Debug.Print(res == current_resolution ? String.Format(">> {0} <<", res.ToString()) : res.ToString());
Debug.Unindent();
lock (display_lock)