Trying to debug deadlock on screen resolution enumeration.

This commit is contained in:
the_fiddler 2008-01-25 13:45:32 +00:00
parent 9d1316c51d
commit a41007fd80

View file

@ -23,17 +23,18 @@ namespace OpenTK.Platform.X11
static X11XrandrDisplayDevice()
{
lock (display_lock)
//lock (display_lock)
{
for (int i = 0; i < API.ScreenCount; i++)
{
unsafe
{
Debug.Print("Checkpoint 1");
XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i);
Debug.Print("{0} resolutions.", array.Length);
Debug.Indent();
int count = array.Length;
while (--count != 0)
while (count-- != 0)
Debug.Print(array[count].ToString());
Debug.Unindent();
}