mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-01 22:00:25 +00:00
Trying to debug deadlock on screen resolution enumeration.
This commit is contained in:
parent
9d1316c51d
commit
a41007fd80
|
@ -23,17 +23,18 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
static X11XrandrDisplayDevice()
|
static X11XrandrDisplayDevice()
|
||||||
{
|
{
|
||||||
lock (display_lock)
|
//lock (display_lock)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < API.ScreenCount; i++)
|
for (int i = 0; i < API.ScreenCount; i++)
|
||||||
{
|
{
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
|
Debug.Print("Checkpoint 1");
|
||||||
XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i);
|
XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i);
|
||||||
Debug.Print("{0} resolutions.", array.Length);
|
Debug.Print("{0} resolutions.", array.Length);
|
||||||
Debug.Indent();
|
Debug.Indent();
|
||||||
int count = array.Length;
|
int count = array.Length;
|
||||||
while (--count != 0)
|
while (count-- != 0)
|
||||||
Debug.Print(array[count].ToString());
|
Debug.Print(array[count].ToString());
|
||||||
Debug.Unindent();
|
Debug.Unindent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue